- 改进了对最新 HTTP/1.1 协议规范文档(RFC 7230, RFC 7231)的要求和建议的一致性
- 由于没有全局池锁,因此具有宽松的连接限制的新连接池实现保证了更高的并发性能,并提高了性能
- 软件包的命名空间已更改为 'org.apache.hc.client5'
- Maven group id 更改为 'org.apache.httpcomponents.client5'
5.0 系列引入了对 HTTP/2 协议的支持,以及为所有受支持的 HTTP 协议版本提供事件驱动消息 API。支持的特性:
-
HPACK header compression
-
Stream multiplexing (client and server)
-
Flow control
-
Response push
-
Message trailers
-
Expect-continue handshake
-
Connection validation (ping)
-
Application-layer protocol negotiation (ALPN) on Java 9.0.1+
-
TLS 1.2 security features