OkHttp v5.0.0-alpha.1 Release Notes
-
2021-01-30
๐ This release adds initial support for [GraalVM][graalvm].
GraalVM is an exciting new platform and we're eager to adopt it. The startup time improvements over the JVM are particularly impressive. Try it with okcurl:
$ ./gradlew okcurl:nativeImage $ ./okcurl/build/graal/okcurl https://cash.app/robots.txt
๐ This is our first release that supports GraalVM. Our code on this platform is less mature than JVM and Android! Please report any issues you encounter: we'll fix them urgently.
- Fix: Attempt to read the response body even if the server canceled the request. This will cause
some calls to return nice error codes like
HTTP/1.1 429 Too Many Requests
instead of transport errors likeSocketException: Connection reset
andStreamResetException: stream was reset: CANCEL
. - New: Support OSGi metadata.
Upgrade: [Okio 2.9.0][okio_2_9_0].
implementation("com.squareup.okio:okio:2.9.0")
๐ Note that this was originally released on 2020-10-06 as 4.10.0-RC1. The only change from that ๐ release is the version name.
- Fix: Attempt to read the response body even if the server canceled the request. This will cause
some calls to return nice error codes like