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.
|
getBody
getHeaders
void setStatusCode(HttpStatus status)
status
- the HTTP status as an HttpStatus enum valuevoid close()
close
in interface AutoCloseable
close
in interface Closeable