public static interface Response.Body extends Closeable
| Modifier and Type | Method and Description |
|---|---|
InputStream |
asInputStream()
It is the responsibility of the caller to close the stream.
|
Reader |
asReader()
It is the responsibility of the caller to close the stream.
|
boolean |
isRepeatable()
True if
asInputStream() and asReader() can be called more than once. |
Integer |
length()
length in bytes, if known.
|
Integer length()
Integer.MAX_VALUE.
boolean isRepeatable()
asInputStream() and asReader() can be called more than once.InputStream asInputStream() throws IOException
IOExceptionReader asReader() throws IOException
IOExceptionCopyright © 2012–2016 OpenFeign. All rights reserved.