设为首页收藏本站

LUPA开源社区

 找回密码
 注册
文章 帖子 博客
LUPA开源社区 首页 业界资讯 软件追踪 查看内容

okhttp 3.3.0发布,HTTP客户端开发包

2016-5-26 22:29| 发布者: joejoe0332| 查看: 1375| 评论: 0|原作者: oschina|来自: oschina

摘要: okhttp 3.3.0 发布了,改进记录如下:New:Response.sentRequestAtMillis()andreceivedResponseAtMillis()methods track the system's local time when network calls are made. These replace theOkHttp-Sent-Millis ...

okhttp 3.3.0 发布了,改进记录如下:

  • New: Response.sentRequestAtMillis() and receivedResponseAtMillis()methods track the system's local time when network calls are made. These replace the OkHttp-Sent-Millis andOkHttp-Sent-Millis headers that were present in earlier versions of OkHttp.

  • New: Accept user-provided trust managers in OkHttpClient.Builder. This allows OkHttp to satisfy its TLS requirements directly. Otherwise OkHttp will use reflection to extract theTrustManager from theSSLSocketFactory.

  • New: Support prerelease Java 9. This gets ALPN from the platform rather than relying on the alpn-boot bootclasspath override.

  • New: HttpLoggingInterceptor now logs connection failures.

  • New: Upgrade to Okio 1.8.0.

    1
    2
    3
    4
    5
     <dependency>
       <groupId>com.squareup.okio</groupId>
       <artifactId>okio</artifactId>
       <version>1.8.0</version>
     </dependency>
  • Fix: Gracefully recover from a failure to rebuild the cache journal.

  • Fix: Don't corrupt cache entries when a cache entry is evicted while it is being updated.

  • Fix: Make logging more consistent throughout OkHttp.

  • Fix: Log plaintext bodies only. This uses simple heuristics to differentiate text from other data.

  • Fix: Recover from REFUSED_STREAM errors in HTTP/2. This should improve interoperability with Nginx 1.10.0, which refuses streams created before HTTP/2 settings have been acknowledged.

  • Fix: Improve recovery from failed routes.

  • Fix: Accommodate tunneling proxies that close the connection after an auth challenge.

  • Fix: Use the proxy authenticator when authenticating HTTP proxies. This regression was introduced in OkHttp 3.0.

  • Fix: Fail fast if network interceptors transform the response body such that closing it doesn't also close the underlying stream. We had a bug where OkHttp would attempt to reuse a connection but couldn't because it was still held by a prior request.

  • Fix: Ensure network interceptors always have access to the underlying connection.

  • Fix: Use X509TrustManagerExtensions on Android 17+.

  • Fix: Unblock waiting dispatchers on MockWebServer shutdown.

下载地址:


酷毙

雷人

鲜花

鸡蛋

漂亮
  • 快毕业了,没工作经验,
    找份工作好难啊?
    赶紧去人才芯片公司磨练吧!!

最新评论

关于LUPA|人才芯片工程|人才招聘|LUPA认证|LUPA教育|LUPA开源社区 ( 浙B2-20090187 浙公网安备 33010602006705号   

返回顶部