void |
ResponseHeaders.addAcceptPatches(MediaType... acceptableMediaTypes) |
Adds one or more acceptedTypes path document formats (header "Accept-Patch").
|
void |
ResponseHeaders.addCookie(String name,
String value) |
Adds Set-Cookie header based on RFC2616.
|
void |
ResponseHeaders.addCookie(String name,
String value,
Duration maxAge) |
Adds Set-Cookie header based on RFC6265 with Max-Age
parameter.
|
void |
ResponseHeaders.contentLength(long contentLength) |
|
void |
ResponseHeaders.contentType(MediaType contentType) |
Sets the MIME type of the response body.
|
void |
ResponseHeaders.expires(Instant dateTime) |
|
void |
ResponseHeaders.expires(ZonedDateTime dateTime) |
|
void |
ResponseHeaders.lastModified(Instant dateTime) |
|
void |
ResponseHeaders.lastModified(ZonedDateTime dateTime) |
|
void |
ResponseHeaders.location(URI location) |
|
default ServerResponse |
ServerResponse.status(int statusCode) |
Sets new HTTP status code.
|
ServerResponse |
ServerResponse.status(Http.ResponseStatus status) |
Sets new HTTP status.
|