public interface ServerHttpResponse extends HttpOutputMessage, java.io.Closeable
| Modifier and Type | Method and Description |
|---|---|
void |
close()
Close this response, freeing any resources created.
|
void |
flush()
TODO
|
void |
setStatusCode(HttpStatus status)
Set the HTTP status code of the response.
|
getBodygetCookies, getHeadersvoid setStatusCode(HttpStatus status)
status - the HTTP status as an HttpStatus enum valuevoid flush()
throws java.io.IOException
java.io.IOExceptionvoid close()
close in interface java.lang.AutoCloseableclose in interface java.io.Closeable