public class RqWrap extends Object implements Request
The class is immutable and thread-safe.
Modifier and Type | Method and Description |
---|---|
InputStream |
body()
HTTP request body.
|
Iterable<String> |
head()
All lines above the body.
|
public RqWrap(Request req)
req
- Original requestpublic final Iterable<String> head() throws IOException
Request
head
in interface Request
IOException
- If something goes wrongpublic final InputStream body() throws IOException
Request
body
in interface Request
IOException
- If something goes wrongCopyright © 2015–2018 Take. All rights reserved.