Package | Description |
---|---|
ratpack.http |
The HTTP protocol.
|
Modifier and Type | Interface and Description |
---|---|
interface |
Response
A response to a request.
|
Modifier and Type | Method and Description |
---|---|
ResponseMetaData |
ResponseMetaData.contentType(CharSequence contentType)
Sets the response
Content-Type header. |
ResponseMetaData |
ResponseMetaData.contentTypeIfNotSet(CharSequence contentType)
Sets the response
Content-Type header, if it has not already been set. |
ResponseMetaData |
ResponseMetaData.noCompress() |
ResponseMetaData |
ResponseMetaData.status(int code)
Sets the status line of the response.
|
ResponseMetaData |
ResponseMetaData.status(Status status)
Sets the status line of the 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.
|