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.
|
default Reader |
asReader()
Deprecated.
favor
Body#asReader(Charset) |
Reader |
asReader(Charset charset)
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
IOException
@Deprecated default Reader asReader() throws IOException
Body#asReader(Charset)
IOException
Reader asReader(Charset charset) throws IOException
IOException
Copyright © 2012–2023 OpenFeign. All rights reserved.