1
0
mirror of https://github.com/square/okhttp.git synced 2025-08-07 12:42:57 +03:00

Prepare for release 4.3.0.

This commit is contained in:
Jesse Wilson
2019-12-31 16:39:08 -05:00
parent b2b2dd7245
commit b63debd827
10 changed files with 54 additions and 12 deletions

View File

@@ -1,6 +1,48 @@
Change Log Change Log
========== ==========
## Version 4.3.0
_2019-12-31_
* Fix: Degrade HTTP/2 connections after a timeout. When an HTTP/2 stream times out it may impact
the stream only or the entire connection. With this fix OkHttp will now send HTTP/2 pings after
a stream timeout to determine whether the connection should remain eligible for pooling.
* Fix: Don't call `EventListener.responseHeadersStart()` or `responseBodyStart()` until bytes have
been received. Previously these events were incorrectly sent too early, when OkHttp was ready to
read the response headers or body, which mislead tracing tools. Note that the `responseFailed()`
event always used to follow one of these events; now it may be sent without them.
* New: Upgrade to Kotlin 1.3.61.
* New: Match any number of subdomains with two asterisks in `CertificatePinner`. For example,
`**.squareup.com` matches `us-west.www.squareup.com`, `www.squareup.com` and `squareup.com`.
* New: Share threads more aggressively between OkHttp's HTTP/2 connections, connection pool,
web sockets, and cache. OkHttp has a new internal task runner abstraction for managed task
scheduling. In your debugger you will see new thread names and more use of daemon threads.
* Fix: Don't drop callbacks on unexpected exceptions. When an interceptor throws an unchecked
exception the callback is now notified that the call was canceled. The exception is still sent
to the uncaught exception handler for reporting and recovery.
* Fix: Un-deprecate `MockResponse.setHeaders()` and other setters. These were deprecated in OkHttp
4.0 but that broke method chaining for Java callers.
* Fix: Don't crash on HTTP/2 HEAD requests when the `Content-Length` header is present but is not
consistent with the length of the response body.
* Fix: Don't crash when converting a `HttpUrl` instance with an unresolvable hostname to a URI.
The new behavior strips invalid characters like `"` and `{` from the hostname before converting.
* Fix: Undo a performance regression introduced in OkHttp 4.0 caused by differences in behavior
between Kotlin's `assert()` and Java's `assert()`. (Kotlin always evaluates the argument; Java
only does when assertions are enabled.)
* Fix: Honor `RequestBody.isOneShot()` in `HttpLoggingInterceptor`.
## Version 4.2.2 ## Version 4.2.2
_2019-10-06_ _2019-10-06_

View File

@@ -99,10 +99,10 @@ Releases
Our [change log][changelog] has release history. Our [change log][changelog] has release history.
The latest release is available on [Maven Central](https://search.maven.org/artifact/com.squareup.okhttp3/okhttp/4.2.2/jar). The latest release is available on [Maven Central](https://search.maven.org/artifact/com.squareup.okhttp3/okhttp/4.3.0/jar).
```kotlin ```kotlin
implementation("com.squareup.okhttp3:okhttp:4.2.2") implementation("com.squareup.okhttp3:okhttp:4.3.0")
``` ```
Snapshot builds are [available][snap]. [R8 and ProGuard][r8_proguard] rules are available. Snapshot builds are [available][snap]. [R8 and ProGuard][r8_proguard] rules are available.
@@ -113,10 +113,10 @@ MockWebServer
OkHttp includes a library for testing HTTP, HTTPS, and HTTP/2 clients. OkHttp includes a library for testing HTTP, HTTPS, and HTTP/2 clients.
The latest release is available on [Maven Central](https://search.maven.org/artifact/com.squareup.okhttp3/mockwebserver/4.2.2/jar). The latest release is available on [Maven Central](https://search.maven.org/artifact/com.squareup.okhttp3/mockwebserver/4.3.0/jar).
```kotlin ```kotlin
testImplementation("com.squareup.okhttp3:mockwebserver:4.2.2") testImplementation("com.squareup.okhttp3:mockwebserver:4.3.0")
``` ```
License License

View File

@@ -1,7 +1,7 @@
org.gradle.jvmargs='-Dfile.encoding=UTF-8' org.gradle.jvmargs='-Dfile.encoding=UTF-8'
GROUP=com.squareup.okhttp3 GROUP=com.squareup.okhttp3
VERSION_NAME=4.3.0-SNAPSHOT VERSION_NAME=4.3.0
POM_URL=https://github.com/square/okhttp POM_URL=https://github.com/square/okhttp
POM_SCM_URL=https://github.com/square/okhttp POM_SCM_URL=https://github.com/square/okhttp

View File

@@ -142,7 +142,7 @@ server.setDispatcher(dispatcher);
### Download ### Download
```kotlin ```kotlin
testImplementation("com.squareup.okhttp3:mockwebserver:4.2.1") testImplementation("com.squareup.okhttp3:mockwebserver:4.3.0")
``` ```
### License ### License

View File

@@ -14,7 +14,7 @@ OkHttpClient client = new OkHttpClient.Builder()
``` ```
```kotlin ```kotlin
implementation("com.squareup.okhttp3:okhttp-brotli:4.2.1") implementation("com.squareup.okhttp3:okhttp-brotli:4.3.0")
``` ```
[1]: https://github.com/google/brotli [1]: https://github.com/google/brotli

View File

@@ -7,5 +7,5 @@ API is not considered stable and may change at any time.
### Download ### Download
```kotlin ```kotlin
testImplementation("com.squareup.okhttp3:okhttp-dnsoverhttps:4.2.1") testImplementation("com.squareup.okhttp3:okhttp-dnsoverhttps:4.3.0")
``` ```

View File

@@ -37,7 +37,7 @@ Download
-------- --------
```kotlin ```kotlin
implementation("com.squareup.okhttp3:logging-interceptor:4.2.1") implementation("com.squareup.okhttp3:logging-interceptor:4.3.0")
``` ```

View File

@@ -7,5 +7,5 @@ API is not considered stable and may change at any time.
### Download ### Download
```kotlin ```kotlin
testImplementation("com.squareup.okhttp3:okhttp-sse:4.2.1") testImplementation("com.squareup.okhttp3:okhttp-sse:4.3.0")
``` ```

View File

@@ -227,7 +227,7 @@ Download
-------- --------
```kotlin ```kotlin
implementation("com.squareup.okhttp3:okhttp-tls:4.2.1") implementation("com.squareup.okhttp3:okhttp-tls:4.3.0")
``` ```
[held_certificate]: http://square.github.io/okhttp/4.x/okhttp-tls/okhttp3.tls/-held-certificate/ [held_certificate]: http://square.github.io/okhttp/4.x/okhttp-tls/okhttp3.tls/-held-certificate/

View File

@@ -6,5 +6,5 @@ This module integrates OkHttp with `Authenticator` and `CookieHandler` from `jav
### Download ### Download
```kotlin ```kotlin
testImplementation("com.squareup.okhttp3:okhttp-urlconnection:4.2.1") testImplementation("com.squareup.okhttp3:okhttp-urlconnection:4.3.0")
``` ```