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 Response> responseFinalizer)
Register a callback to execute with the response immediately before sending it to the client.
|
Response |
Response.contentType(CharSequence contentType)
Sets the response
Content-Type header. |
default Response |
Response.contentTypeIfNotSet(CharSequence contentType)
Sets the response
Content-Type header, if it has not already been set. |
Response |
Response.contentTypeIfNotSet(Supplier<CharSequence> contentType) |
Response |
Response.noCompress()
Prevents the response from being compressed.
|
default Response |
Response.status(int code)
Sets the status line of the response.
|
Response |
Response.status(Status status)
Sets the status line of the response.
|
Modifier and Type | Method and Description |
---|---|
Response |
Response.beforeSend(Action<? super Response> responseFinalizer)
Register a callback to execute with the response immediately before sending it to the client.
|
Modifier and Type | Method and Description |
---|---|
void |
ReceivedResponse.forwardTo(Response response) |
void |
StreamedResponse.forwardTo(Response response)
Stream this received response out to the given server response.
|
void |
StreamedResponse.forwardTo(Response response,
Action<? super MutableHeaders> headerMutator)
Stream this received response out to the given server response.
|