mirror of
https://github.com/square/okhttp.git
synced 2026-01-14 07:22:20 +03:00
This is a source-incompatible API change. In particular, Response.body(null) is no longer source-compatible for Kotlin source. The upside is tremendous: no need for callers to use !! on Response.body on every single API call. In the rare cases where a Response doesn't have a body we use a runtime error. This is unlikely to cause problems in practice; users don't have reason to read the response body on supporting responses.