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 like SocketException: Connection reset and StreamResetException: stream was reset: CANCEL.
    • New: Support OSGi metadata.
    • Upgrade: [Okio 2.9.0][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.