HttpComponents Core 5.0 alpha2 发布了。
这是一个主要版本,使 HttpCore API 与稳定的 4.x 分支不兼容,并升级 HTTP/1.1和 HTTP/2 协议符合最新协议规范的要求和建议。
5.0 系列中包含的显着变化和功能包括:
-
部分支持 HTTP/2 协议和部分符合最新的 HTTP/2协议规范(RFC 7540,RFC 7541)的要求和建议
请注意,从 5.0 开始,HttpCore 需要 Java 1.7 或更高版本。
更新内容:
-
Improved conformance to requirements and recommendations of the latest HTTP/1.1 protocol specification (RFC 7230, RFC 7231)
-
New asynchronous HTTP transport APIs consistent for both HTTP/1.1 and HTTP/2 transport
-
Improved HTTP/1.1 and HTTP/2 requester and server implementations
-
Redesigned connection pool implementation with reduced pool lock contention
-
Support for HTTP/1.1 protocol switch / upgrade
-
Package name space changed to 'org.apache.hc.core5'
-
Maven group id changed to 'org.apache.httpcomponents.core5'
下载地址