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