Package | Description |
---|---|
ratpack.handling |
The handling of application requests.
|
ratpack.http |
The HTTP protocol.
|
ratpack.http.client |
The HTTP client.
|
Modifier and Type | Method and Description |
---|---|
Response |
Context.getResponse()
The HTTP response.
|
Modifier and Type | Method and Description |
---|---|
Response |
Response.beforeSend(Action<? super ResponseMetaData> responseFinalizer)
Register an action to execute upon the response immediately before sending it to the client.
|
Response |
Response.contentType(CharSequence contentType) |
default Response |
Response.contentTypeIfNotSet(CharSequence contentType) |
Response |
Response.contentTypeIfNotSet(Supplier<CharSequence> contentType) |
Response |
Response.status(int code) |
Response |
Response.status(Status status) |
Modifier and Type | Method and Description |
---|---|
void |
ReceivedResponse.send(Response response) |
void |
StreamedResponse.send(Response response)
Stream this received response out to the given server response.
|
void |
StreamedResponse.send(Response response,
Action<? super MutableHeaders> headerMutator)
Stream this received response out to the given server response.
|