public interface ServerHttpResponse extends ReactiveHttpOutputMessage
Modifier and Type | Method and Description |
---|---|
MultiValueMap<String,ResponseCookie> |
getCookies()
Return a mutable map with the cookies to send to the server.
|
HttpStatus |
getStatusCode()
Return the HTTP status code or
null if not set. |
reactor.core.publisher.Mono<Void> |
setComplete()
Indicate that request handling is complete, allowing for any cleanup or
end-of-processing tasks to be performed such as applying header changes
made via
HttpMessage.getHeaders() to the underlying server response (if not
applied already). |
boolean |
setStatusCode(HttpStatus status)
Set the HTTP status code of the response.
|
beforeCommit, bufferFactory, writeAndFlushWith, writeWith
getHeaders
boolean setStatusCode(HttpStatus status)
status
- the HTTP status as an HttpStatus
enum valuefalse
if the status code has not been set because the HTTP response
is already committed, true
if it has been set correctly.HttpStatus getStatusCode()
null
if not set.MultiValueMap<String,ResponseCookie> getCookies()
reactor.core.publisher.Mono<Void> setComplete()
HttpMessage.getHeaders()
to the underlying server response (if not
applied already).
This method should be automatically invoked at the end of request processing so typically applications should not have to invoke it. If invoked multiple times it should have no side effects.
setComplete
in interface ReactiveHttpOutputMessage
Mono
that indicates completion or error