HttpComponents Core 5.0 alpha4 已发布,这是一个主要版本,它的 HttpCore API 与稳定的 4.x 分支不兼容,并根据最新协议规范的要求和建议升级了 HTTP/1.1和 HTTP/2 协议。
5.0 系列中部分值得关注的变更和功能:
Support for HTTP/2 protocol and conformance to requirements and recommendations of the latest HTTP/2 protocol specification
Improved conformance to requirements and recommendations of the latest HTTP/1.1 protocol specification
New asynchronous HTTP transport APIs consistent for both HTTP/1.1 and HTTP/2 transport.
Redesigned I/O reactor APIs and improved NIO based reactor implementation for a greater performance and scalability.
请注意,从 5.0 开始,HttpCore 需要 Java 1.7 或更高版本。
HttpComponents 也就是以前的 httpclient 项目,可以用来提供高效的、最新的、功能丰富的支持 HTTP 协议的客户端/服务器编程工具包,并且它支持 HTTP 协议最新的版本和建议。不过现在的 HttpComponents 包含多个子项目,有:
HttpComponents Core
HttpComponents Client
HttpComponents AsyncClient
Commons HttpClient
软件详情:http://www.apache.org/dist/httpcomponents/httpcore/REL%20EASE_NOTES-5.0.x.txt
下载地址:http://hc.apache.org/downloads.cgi
来自:开源中国社区

