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

栏目: 软件资讯 · 发布时间: 5年前

内容简介: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: H...

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.

下载地址:


【声明】文章转载自:开源中国社区 [http://www.oschina.net]


以上所述就是小编给大家介绍的《OkHttp 3.11.0 发布,轻量的 Java 网络请求框架》,希望对大家有所帮助,如果大家有任何疑问请给我留言,小编会及时回复大家的。在此也非常感谢大家对 码农网 的支持!

查看所有标签

猜你喜欢:

本站部分资源来源于网络,本站转载出于传递更多信息之目的,版权归原作者或者来源机构所有,如转载稿涉及版权问题,请联系我们

数据之美

数据之美

邱南森 (Nathan Yau) / 张伸 / 中国人民大学出版社 / 2014-2-1 / CNY 89.00

这是一本教我们如何制作完美可视化图表,挖掘大数据背后意义的书。作者认为,可视化是一种媒介,向我们揭示了数据背后的故事。他循序渐进、深入浅出地道出了数据可视化的步骤和思想。本书让我们知道了如何理解数据可视化,如何探索数据的模式和寻找数据间的关联,如何选择适合自己的数据和目的的可视化方式,有哪些我们可以利用的可视化工具以及这些工具各有怎样的利弊。 作者给我们提供了丰富的可视化信息以及查看、探索数......一起来看看 《数据之美》 这本书的介绍吧!

RGB转16进制工具
RGB转16进制工具

RGB HEX 互转工具

XML 在线格式化
XML 在线格式化

在线 XML 格式化压缩工具

HEX CMYK 转换工具
HEX CMYK 转换工具

HEX CMYK 互转工具