public interface ServerHttpResponse extends HttpOutputMessage, Closeable
| Modifier and Type | Method and Description |
|---|---|
void |
close()
Close this response, freeing any resources created.
|
void |
setStatusCode(HttpStatus status)
Set the HTTP status code of the response.
|
getBodygetHeadersvoid setStatusCode(HttpStatus status)
status - the HTTP status as an HttpStatus enum valuevoid close()
close in interface AutoCloseableclose in interface Closeable