1
0
mirror of https://github.com/square/okhttp.git synced 2026-01-17 08:42:25 +03:00
Files
okhttp/okhttp-apache
Neil Fuller 6ca86d4de1 Source-incompatible: ResponseBody methods throw IOException
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.
2015-01-09 15:32:24 +00:00
..

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.