Java HTTP客户端 http4j

码农软件 · 软件分类 · 网络工具包 · 2019-03-01 14:42:03

软件介绍

http4j是一个开源的Java HTTP客户端,主要是源自对工作中的一个项目设计的不满和扩展Apache HttpComponent比较麻烦。

不同于Apache HttpComponent (HttpClient)之处在于:

1. 专注于“客户端”定位:省去很多不必要的抽象层以及功能,如解析HTTP请求等。
2. 立足于方便易用:从主页的例子中可以看出使用http4j是极其方便的。
3. 原生的较完善的数据统计: DNS解析耗时,request发送耗时,等待耗时,response接收耗时,字节数等等。这个是为了方便关注网站性能或者流量开销(购买云计算服务时会特别关注自己的成本)的应用。在Apache的项目中,使用者需要定义自己的Proxy才能实现此功能。

示例代码:http://www.oschina.net/code/snippet_12_2116

本文地址:https://www.codercto.com/soft/d/395.html

Bad Blood

Bad Blood

John Carreyrou / Knopf / 2018-5-21 / USD 27.95

The full inside story of the breathtaking rise and shocking collapse of Theranos, the multibillion-dollar biotech startup, by the prize-winning journalist who first broke the story and pursued it to t......一起来看看 《Bad Blood》 这本书的介绍吧!

HTML 编码/解码
HTML 编码/解码

HTML 编码/解码

html转js在线工具
html转js在线工具

html转js在线工具

HEX CMYK 转换工具
HEX CMYK 转换工具

HEX CMYK 互转工具