Package | Description |
---|---|
ratpack.form |
Support for handling uploaded forms, including file uploads.
|
ratpack.handling |
The handling of application requests.
|
ratpack.http |
The HTTP protocol.
|
ratpack.http.client |
The HTTP client.
|
ratpack.parse |
Parsing in Ratpack refers to deserializing a request body into a Java object of some type.
|
Modifier and Type | Interface and Description |
---|---|
interface |
UploadedFile
A file that was uploaded via a form.
|
Modifier and Type | Method and Description |
---|---|
<T,O> T |
Context.parse(TypedData body,
Parse<T,O> parse)
Parses the provided request body into an object.
|
Modifier and Type | Method and Description |
---|---|
Promise<TypedData> |
Request.getBody()
The body of the request.
|
Promise<TypedData> |
Request.getBody(Block onTooLarge)
The body of the request.
|
Promise<TypedData> |
Request.getBody(long maxContentLength)
The body of the request allowing up to the provided size for the content.
|
Promise<TypedData> |
Request.getBody(long maxContentLength,
Block onTooLarge)
The body of the request allowing up to the provided size for the content.
|
Modifier and Type | Method and Description |
---|---|
TypedData |
ReceivedResponse.getBody() |
Modifier and Type | Method and Description |
---|---|
<T> T |
Parser.parse(Context context,
TypedData requestBody,
Parse<T,O> parse)
Deserializes the request body of the context into an object.
|
<T> T |
NoOptParserSupport.parse(Context context,
TypedData requestBody,
Parse<T,Void> parse)
Delegates to
NoOptParserSupport.parse(ratpack.handling.Context, ratpack.http.TypedData, TypeToken) , discarding the opts object of the given parse . |
protected abstract <T> T |
NoOptParserSupport.parse(Context context,
TypedData requestBody,
TypeToken<T> type)
The parser implementation.
|