public interface Request
An object implementing this interface can be "parsed" using one
of the decorators available in org.takes.rq
package. For example,
in order to fetch a query parameter you can do:
final List<String> params = new RqQuery(request).param("name");
All implementations of this interface must be immutable and thread-safe.
Response
,
Takes
Modifier and Type | Method and Description |
---|---|
InputStream |
body()
HTTP request body.
|
List<String> |
head()
All lines above the body.
|
List<String> head() throws IOException
IOException
- If something goes wrongInputStream body() throws IOException
IOException
- If something goes wrongCopyright © 2015 Takes. All rights reserved.