Skip to content

Latest commit

 

History

History
17 lines (16 loc) · 1.42 KB

File metadata and controls

17 lines (16 loc) · 1.42 KB

From 2.0 to 2.1

  • AHC 2.1 targets Netty 4.1.
  • org.asynchttpclient.HttpResponseHeaders was dropped in favor of io.netty.handler.codec.http.HttpHeaders.
  • org.asynchttpclient.cookie.Cookie was dropped in favor of io.netty.handler.codec.http.cookie.Cookie as AHC's cookie parsers were contributed to Netty.
  • AHC now has a RFC6265 CookieStore that is enabled by default. Implementation can be changed in AsyncHttpClientConfig.
  • AsyncHttpClient now exposes stats with getClientStats.
  • AsyncHandlerExtensions was dropped in favor of default methods in AsyncHandler.
  • WebSocket and WebSocketListener methods were renamed to mention frames
  • AsyncHttpClientConfig various changes:
    • new getCookieStore now lets you configure a CookieStore (enabled by default)
    • new isAggregateWebSocketFrameFragments now lets you disable WebSocket fragmented frames aggregation
    • new isUseLaxCookieEncoder lets you loosen cookie chars validation
    • isAcceptAnyCertificate was dropped, as it didn't do what its name stated
    • new isUseInsecureTrustManager lets you use a permissive TrustManager, that would typically let you accept self-signed certificates
    • new isDisableHttpsEndpointIdentificationAlgorithm disables setting HTTPS algorithm on the SSLEngines, typically disables SNI and HTTPS hostname verification
    • new isAggregateWebSocketFrameFragments lets you disable fragmented WebSocket frames aggregation