发布于 2016-05-26 08:22:06 | 411 次阅读 | 评论: 0 | 来源: 网友投递

这里有新鲜出炉的精品教程,程序狗速度看过来!

okhttp HTTP+SPDY 客户端开发包

okhttp 是一个 Java 的 HTTP+SPDY 客户端开发包,同时也支持 Android。


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 and OkHttp-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 the TrustManager 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.

     <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.

下载地址:



历史版本 :
OkHttp 3.9.1 发布,轻量的 Java 网络请求框架
OkHttp 3.9.1 发布,轻量的 Java 网络请求框架
OkHttp 3.9.0 发布,轻量的 Java 网络请求框架
okhttp 3.8.1 发布,HTTP+SPDY 客户端开发包
okhttp 3.8.0 发布,HTTP+SPDY 客户端开发包
okhttp 3.7.0 发布,HTTP+SPDY 客户端开发包
easy-okhttp 1.0.10-Final 发布
okhttp 3.5.0 发布,HTTP+SPDY 客户端开发包
NoHttp1.1 发布,完美切入OKHttp 和 RxJava
okhttp 3.4.0 和 3.4.1 发布,HTTP+SPDY 客户端开发包
okhttp 3.4.0 RC1 发布,HTTP+SPDY 客户端开发包
okhttp 3.3.1 发布,HTTP+SPDY 客户端开发包
最新网友评论  共有(0)条评论 发布评论 返回顶部

Copyright © 2007-2017 PHPERZ.COM All Rights Reserved   冀ICP备14009818号  版权声明  广告服务