mirror of
https://github.com/square/okhttp.git
synced 2026-01-17 08:42:25 +03:00
This is a binary-compatible change, but code that currently calls ResponseBody [contentLength()|byteStream()|source()|charStream()] that doesn't necessarily catch or declare IOException will need to with this change. These methods could be performing I/O (opening streams, etc.). Throwing IOException seems reasonable in this case. contentType() and charset() have not been changed.
OkHttp Apache HttpClient Implementation
This module is an implementation of the Apache HttpClient interface that is backed by OkHttp.
Warning: Many core features of Apache HTTP client are not implemented by this API. This includes the keep-alive strategy, cookie store, credentials provider, route planner and others.