Package org.takes.rq
Class RequestOf
- java.lang.Object
-
- org.takes.rq.RequestOf
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description InputStream
body()
Body.boolean
equals(Object that)
int
hashCode()
Iterable<String>
head()
All lines above the body.
-
-
-
Constructor Detail
-
RequestOf
public RequestOf(Iterable<String> head, InputStream body)
Ctor.- Parameters:
head
- Iterable head valuebody
- InputStream body value
-
-
Method Detail
-
head
public Iterable<String> head() throws IOException
Description copied from interface:Head
All lines above the body.- Specified by:
head
in interfaceHead
- Returns:
- List of lines
- Throws:
IOException
- If something goes wrong
-
body
public InputStream body() throws IOException
Description copied from interface:Body
Body.- Specified by:
body
in interfaceBody
- Returns:
- Stream with body
- Throws:
IOException
- If something goes wrong
-
-