OkHttp v4.0.0-RC2 Release Notes

Release Date: 2019-06-21 // almost 5 years ago
  • 2019-06-21

    • New: Require Kotlin 1.3.40.
    • New: Change the Kotlin API from File.toRequestBody() to File.asRequestBody() and BufferedSource.toResponseBody() to BufferedSource.asResponseBody(). If the returned value is a view of what created it, we use as.
    • Fix: Permit response codes of zero for compatibility with OkHttp 3.x.
    • Fix: Change the return type of MockWebServer.takeRequest() to be nullable.
    • Fix: Make Call.clone() public to Kotlin callers.