OkHttp v5.0.0-alpha.3 Release Notes
-
2021-11-22
- Fix: Change
Headers.toString()
to redact authorization and cookie headers. - Fix: Don't do DNS to get the hostname for
RecordedRequest.requestUrl
. This was doing a DNS lookup for the local hostname, but we really just wanted theHost
header. - Fix: Don't crash with a
InaccessibleObjectException
when detecting the platform trust manager on Java 17+. - Fix: Don't crash if a cookie's value is a lone double quote character.
- Fix: Don't crash when canceling an event source created by
EventSources.processResponse()
. - New:
Cache
now has a public constructor that takes an [okio.FileSystem]. This should make it possible to implement decorators for cache encryption or compression. - New:
Cookie.newBuilder()
to build upon an existing cookie. - New: Use TLSv1.3 when running on JDK 8u261 or newer.
- New:
QueueDispatcher.clear()
may be used to reset a MockWebServer instance. - New:
FileDescriptor.toRequestBody()
may be particularly useful for users of Android's Storage Access Framework. - Upgrade: [Kotlin 1.5.31][kotlin_1_5_31].
- Upgrade: [Okio 3.0.0][okio_3_0_0].
- Fix: Change