1
0
mirror of https://github.com/square/okhttp.git synced 2026-01-18 20:40:58 +03:00
Files
okhttp/okhttp-apache/src
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
..