OkHttp 3.11.0 发布,轻量的 Java 网络请求框架

2018-07-16    来源:oschina

容器云强势上线!快速搭建集群,上万Linux镜像随意使用

OkHttp 3.11.0 已发布,OkHttp 是一个轻量的 Java 网络请求框架。

本次更新内容如下:

  • OkHttp's new okhttp-tls submodule tames HTTPS and TLS.

  • OkHttp now supports prior knowledge cleartext HTTP/2

  • New: HttpUrl.get(String) is an alternative to HttpUrl.parse(String) that throws an exception when the URL is malformed instead of returning null. 

  • New: The EventListener API previewed in OkHttp 3.9 has graduated to a stable API. 

  • New: okhttp-dnsoverhttps is an experimental API for doing DNS queries over HTTPS. 

  • New: okhttp-sse is an early preview of Server-Sent Events (SSE). 

  • New: MockWebServer now supports client authentication (mutual TLS). 

  • New: RecordedRequest.getHandshake() returns the HTTPS handshake of a request sent to MockWebServer.

  • Fix: Honor the MockResponse header delay in MockWebServer.

  • Fix: Don't release HTTP/2 connections that have multiple canceled calls. 

  • Fix: Ensure canceled and discarded HTTP/2 data is not permanently counted against the limited flow control window. 

  • Fix: Recover gracefully if the TLS session returns an unexpected version (NONE) or cipher suite (SSL_NULL_WITH_NULL_NULL).

  • Fix: Don't change Conscrypt configuration globally. 

  • Fix: Prefer TLSv1.2 where it is available. 

  • New: Request.tag() permits multiple tags. Use a Class<?> as a key to identify tags. 

  • New: Headers.Builder.addAll(Headers).

  • New: ResponseBody.create(MediaType, ByteString).

  • New: Embed R8/ProGuard rules in the jar.

  • Fix: Release the connection if Authenticator throws an exception.

  • Fix: Change the declaration of OkHttpClient.cache() to return a @Nullable Cache

  • Fix: Reverse suppression of connect exceptions. 

  • Fix: Retain interrupted state when throwing InterruptedIOException

  • Fix: Don't drop a call to EventListener.callEnd() when the response body is consumed inside an interceptor.

下载地址:

  • Source code (zip)

  • Source code (tar.gz)

标签: dns ssl 网络

版权申明:本站文章部分自网络,如有侵权,请联系:west999com@outlook.com
特别注意:本站所有转载文章言论不代表本站观点!
本站所提供的图片等素材,版权归原作者所有,如需使用,请与原作者联系。

上一篇:码云企业版任务管理更新 —— 自定义任务类型和状态

下一篇:Wine 通过 MoltenVK 在macOS上提供对 Vulkan 的支持