Example usage for Java org.springframework.http.server.reactive ServerHttpResponse fields, constructors, methods, implement or subclass
The text is from its open source code.
void | beforeCommit(Supplier extends Mono Register an action to apply just before the HttpOutputMessage is committed. |
DataBufferFactory | bufferFactory() Return a DataBufferFactory that can be used to create the body. |
HttpHeaders | getHeaders() Return the headers of this message. |
HttpStatus | getStatusCode() Return the status code set via #setStatusCode , or if the status has not been set, return the default status code from the underlying server response. |
boolean | isCommitted() Whether the HttpOutputMessage is committed. |
Mono | setComplete() Indicate that message handling is complete, allowing for any cleanup or end-of-processing tasks to be performed such as applying header changes made via #getHeaders() to the underlying HTTP message (if not applied already). |
boolean | setStatusCode(@Nullable HttpStatus status) Set the HTTP status code of the response. |
Mono | writeAndFlushWith(Publisher extends Publisher extends DataBuffer>> body) Use the given Publisher of Publishers to write the body of the HttpOutputMessage to the underlying HTTP layer, flushing after each Publisher |
Mono | writeWith(Publisher extends DataBuffer> body) Use the given Publisher to write the body of the message to the underlying HTTP layer. |