public class RsWrap extends Object implements Response
The class is immutable and thread-safe.
Modifier and Type | Method and Description |
---|---|
InputStream |
body()
HTTP response body.
|
Iterable<String> |
head()
HTTP response head.
|
public RsWrap(Response res)
res
- Original responsepublic final Iterable<String> head() throws IOException
Response
head
in interface Response
IOException
- If something goes wrongpublic final InputStream body() throws IOException
Response
body
in interface Response
IOException
- If something goes wrongCopyright © 2015–2018 Take. All rights reserved.