1. XenForo 1.5.14 中文版——支持中文搜索!现已发布!查看详情
  2. Xenforo 爱好者讨论群:215909318 XenForo专区

新闻 okhttp 3.3.0 发布,HTTP 客户端开发包 下载

本帖由 漂亮的石头2016-05-26 发布。版面名称:软件资讯

  1. 漂亮的石头

    漂亮的石头 版主 管理成员

    注册:
    2012-02-10
    帖子:
    487,674
    赞:
    47
    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.3.0 发布,HTTP 客户端开发包下载地址
     
正在加载...