1
0
mirror of https://github.com/square/okhttp.git synced 2025-07-31 05:04:26 +03:00

Prepare for release 4.1.0.

This commit is contained in:
Jesse Wilson
2019-08-12 13:00:00 -04:00
parent 96fbf6b330
commit 4739b27806
10 changed files with 42 additions and 11 deletions

View File

@ -1,6 +1,36 @@
Change Log
==========
## Version 4.1.0
_2019-08-12_
[brotli]: https://github.com/google/brotli
* **OkHttp's new okhttp-brotli module implements Brotli compression.** Install the interceptor to
enable [Brotli compression][brotli], which compresses 5-20% smaller than gzip.
```
val client = OkHttpClient.Builder()
.addInterceptor(BrotliInterceptor)
.build()
```
This artifact has a dependency on Google's Brotli decoder (95 KiB).
* New: `EventListener.proxySelectStart()`, `proxySelectEnd()` events give visibility into the
proxy selection process.
* New: `Response.byteString()` reads the entire response into memory as a byte string.
* New: `OkHttpClient.x509TrustManager` accessor.
* New: Permit [new WebSocket response codes][iana_websocket]: 1012 (Service Restart), 1013 (Try
Again Later), and 1014 (invalid response from the upstream).
* New: Build with Kotlin 1.3.41, BouncyCastle 1.62, and Conscrypt 2.2.1.
* Fix: Recover gracefully when a a coalesced connection immediately goes unhealthy.
* Fix: Defer the `SecurityException` when looking up the default proxy selector.
* Fix: Don't use brackets formatting IPv6 host names in MockWebServer.
* Fix: Don't permit cache iterators to remove entries that are being written.
## Version 4.0.1
_2019-07-10_
@ -1830,3 +1860,4 @@ Initial release.
[upgrading_to_okhttp_4]: https://square.github.io/okhttp/upgrading_to_okhttp_4/
[interceptors]: https://square.github.io/okhttp/interceptors/
[okhttp4_blog_post]: https://cashapp.github.io/2019-06-26/okhttp-4-goes-kotlin
[iana_websocket]: https://www.iana.org/assignments/websocket/websocket.txt

View File

@ -100,7 +100,7 @@ Releases
Our [change log][changelog] has release history.
```kotlin
implementation("com.squareup.okhttp3:okhttp:4.0.1")
implementation("com.squareup.okhttp3:okhttp:4.1.0")
```
Snapshot builds are [available][snap].
@ -120,7 +120,7 @@ MockWebServer
OkHttp includes a library for testing HTTP, HTTPS, and HTTP/2 clients.
```kotlin
testImplementation("com.squareup.okhttp3:mockwebserver:4.0.1")
testImplementation("com.squareup.okhttp3:mockwebserver:4.1.0")
```

View File

@ -189,8 +189,8 @@ subprojects { project ->
includes = ['Module.md']
}
externalDocumentationLink {
url = new URL("https://square.github.io/okio/2.x/okio/jvm/index.html")
packageListUrl = new URL("https://square.github.io/okio/2.x/okio/jvm/package-list")
url = new URL("https://square.github.io/okio/2.x/okio/")
packageListUrl = new URL("https://square.github.io/okio/2.x/okio/package-list")
}
}
}

View File

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

View File

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

View File

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

View File

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

View File

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

View File

@ -227,7 +227,7 @@ Download
--------
```kotlin
implementation("com.squareup.okhttp3:okhttp-tls:4.0.1")
implementation("com.squareup.okhttp3:okhttp-tls:4.1.0")
```
[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
```kotlin
testImplementation("com.squareup.okhttp3:okhttp-urlconnection:4.0.1")
testImplementation("com.squareup.okhttp3:okhttp-urlconnection:4.1.0")
```