Skip to content

Rút ra một cái đơn giản HTTP thông dụng tiếp lời, tầng dưới chót thực hiện căn cứ cụ thể dẫn vào ỷ lại chỉ định.

License

Notifications You must be signed in to change notification settings

xkcoding/simple-http

Folders and files

NameName
Last commit message
Last commit date

Latest commit

History

57 Commits

Repository files navigation

Travis-CI MAVEN author JDK LICENSE

Tóm tắt

Rút ra một cái đơn giản HTTP thông dụng tiếp lời, tầng dưới chót thực hiện căn cứ cụ thể dẫn vào ỷ lại chỉ định.

<dependency>
<groupId>com.xkcoding.http</groupId>
<artifactId>simple-http</artifactId>
<version>1.0.5</version>
</dependency>

Đặc điểm

  • Cam chịu sẽ dựa theo phía dưới ưu tiên cấp tự hành tìm kiếm tầng dưới chót thực hiện,java 11 HttpClient -> OkHttp3 -> apache HttpClient -> hutool-http
  • Cũng có thể tự hành thực hiệncom.xkcoding.http.support.HttpTiếp lời, thông quaHttpUtil.setHttp(new MyHttpImpl())Thiết trí tiến vào
  • Có thể phối trí siêu thời thời gian cập đại lý
HttpUtil.setConfig(HttpConfig.builder()
.timeout(Constants.DEFAULT_TIMEOUT)
.proxy(newProxy(Proxy.Type.HTTP,newInetSocketAddress("127.0.0.1",10080)))
.build());
SimpleHttpResponseresponse=HttpUtil.get("https:// google");
System.out.println("code ="+response.getCode());
System.out.println("body ="+response.getBody());

TODO

About

Rút ra một cái đơn giản HTTP thông dụng tiếp lời, tầng dưới chót thực hiện căn cứ cụ thể dẫn vào ỷ lại chỉ định.

Topics

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages