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 use
RqHref
:
final Iterable<String> params = new RqHref(request).href().param("name");
All implementations of this interface must be immutable and thread-safe.
Response
,
Take
,
RqRegex
,
RqHref
Modifier and Type | Method and Description |
---|---|
InputStream |
body()
HTTP request body.
|
Iterable<String> |
head()
All lines above the body.
|
Iterable<String> head() throws IOException
IOException
- If something goes wrongInputStream body() throws IOException
IOException
- If something goes wrongCopyright © 2015 Take. All rights reserved.