public interface ServerHttpResponse extends ReactiveHttpOutputMessage
| Modifier and Type | Method and Description | 
|---|---|
void | 
addCookie(ResponseCookie cookie)
Add the given  
ResponseCookie. | 
MultiValueMap<String,ResponseCookie> | 
getCookies()
Return a mutable map with the cookies to send to the server. 
 | 
default Integer | 
getRawStatusCode()
Return the status code that has been set, or otherwise fall back on the
 status of the response from the underlying server. 
 | 
HttpStatus | 
getStatusCode()
Return the status code that has been set, or otherwise fall back on the
 status of the response from the underlying server. 
 | 
default boolean | 
setRawStatusCode(Integer value)
Set the HTTP status code to the given value (potentially non-standard and
 not resolvable through the  
HttpStatus enum) as an integer. | 
boolean | 
setStatusCode(HttpStatus status)
Set the HTTP status code of the response. 
 | 
beforeCommit, bufferFactory, isCommitted, setComplete, writeAndFlushWith, writeWithgetHeadersboolean setStatusCode(@Nullable HttpStatus status)
status - the HTTP status as an HttpStatus enum valuefalse if the status code change wasn't processed because
 the HTTP response is committed, true if successfully set.@Nullable HttpStatus getStatusCode()
null if the status code value is outside the
 HttpStatus enum range, or if there is no default value from the
 underlying server.default boolean setRawStatusCode(@Nullable Integer value)
HttpStatus enum) as an integer.value - the status code valuefalse if the status code change wasn't processed because
 the HTTP response is committed, true if successfully set.@Nullable default Integer getRawStatusCode()
null if there is no default value from the underlying server.MultiValueMap<String,ResponseCookie> getCookies()
void addCookie(ResponseCookie cookie)
ResponseCookie.cookie - the cookie to addIllegalStateException - if the response has already been committed