| Modifier and Type | Method and Description |
|---|---|
| public HttpServerResponse | |
| public HttpServerResponse | Returns: thisHttpServerResponseheader name name, CharSequence header value value)Adds an outbound HTTP header, appending the value if the header already exist. |
| public HttpServerResponse | Returns: thisHttpServerResponsetrue if Transfer-Encoding: chunked chunked)Sets Transfer-Encoding header |
| public HttpServerResponse | Returns: thisHttpServerResponseshould handle compression compress)Enables/Disables compression handling (gzip/deflate) for the underlying response |
| public boolean | Returns: true if headers and status have been sent to the clientReturns true if headers and status have been sent to the client |
| public HttpServerResponse | Returns: thisHttpServerResponseheaders key name, CharSequence header value value)Sets an outbound HTTP header, replacing any pre-existing value. |
| public HttpServerResponse | Returns: thisHttpServerResponsenetty headers map headers)Sets outbound HTTP headers, replacing any pre-existing value for these headers. |
| public HttpServerResponse | Returns: thisHttpServerResponseSets the request |
| public HttpHeaders | Returns: headers sent back to the clientsReturns the outbound HTTP headers, sent back to the clients |
| public Mono | |
| public NettyOutbound | Returns: aNettyOutbound successful on committed responseReturns a |
| public Mono | Returns: aMono successful on flush confirmationSends 404 status |
| public Mono | Returns: aMono successful on flush confirmationthe location to redirect to location)Sends redirect status |
| public default Mono | Returns: aMono completing when upgrade is confirmed, otherwise failsthe I/O handler for websocket transport websocketHandler)Upgrades the connection to websocket. |
| public Mono | Returns: aMono completing when upgrade is confirmed, otherwise failsthe I/O handler for websocket transport websocketHandler, WebsocketServerSpec WebsocketServerSpec for websocket configurationUpgrades the connection to websocket. |
| public HttpServerResponse | |
| public HttpResponseStatus | |
| public HttpServerResponse | Returns: thisHttpServerResponsean HTTP status to be sent along with the headers status)Sets an HTTP status to be sent along with the headers |
| public default HttpServerResponse | Returns: thisHttpServerResponsean HTTP status to be sent along with the headers status)Sets an HTTP status to be sent along with the headers |
| public HttpServerResponse | Returns: thisHttpServerResponsenetty headers map trailerHeaders)Callback for setting outbound trailer headers. |
| public HttpServerResponse | withConnection(Consumer<? super Connection>
connection callback withConnection)Redeclares reactor. Connection to operate on the underlying
Channel state.
|
| addCookie | back to summary |
|---|---|
| public HttpServerResponse addCookie(HttpSetCookie cookie) Adds an outbound cookie
| |
| addHeader | back to summary |
|---|---|
| public HttpServerResponse addHeader(CharSequence name, CharSequence value) Adds an outbound HTTP header, appending the value if the header already exist.
| |
| chunkedTransfer | back to summary |
|---|---|
| public HttpServerResponse chunkedTransfer(boolean chunked) Sets Transfer-Encoding header
| |
| compression | back to summary |
|---|---|
| public HttpServerResponse compression(boolean compress) Enables/Disables compression handling (gzip/deflate) for the underlying response
| |
| hasSentHeaders | back to summary |
|---|---|
| public boolean hasSentHeaders() Returns true if headers and status have been sent to the client
| |
| header | back to summary |
|---|---|
| public HttpServerResponse header(CharSequence name, CharSequence value) Sets an outbound HTTP header, replacing any pre-existing value.
| |
| headers | back to summary |
|---|---|
| public HttpServerResponse headers(HttpHeaders headers) Sets outbound HTTP headers, replacing any pre-existing value for these headers.
| |
| keepAlive | back to summary |
|---|---|
| public HttpServerResponse keepAlive(boolean keepAlive) Sets the request
| |
| responseHeaders | back to summary |
|---|---|
| public HttpHeaders responseHeaders() Returns the outbound HTTP headers, sent back to the clients
| |
| send | back to summary |
|---|---|
| public Mono Sends the HTTP headers and empty content thus delimiting a full empty body http response.
| |
| sendHeaders | back to summary |
|---|---|
| public NettyOutbound sendHeaders() Returns a
| |
| sendNotFound | back to summary |
|---|---|
| public Mono Sends 404 status | |
| sendRedirect | back to summary |
|---|---|
| public Mono Sends redirect status | |
| sendWebsocket | back to summary |
|---|---|
| public default Mono Upgrades the connection to websocket. A
| |
| sendWebsocket | back to summary |
|---|---|
| public Mono Upgrades the connection to websocket. A
| |
| sse | back to summary |
|---|---|
| public HttpServerResponse sse() Adds "text/event-stream" content-type for Server-Sent Events
| |
| status | back to summary |
|---|---|
| public HttpResponseStatus status() Returns the assigned HTTP status
| |
| status | back to summary |
|---|---|
| public HttpServerResponse status(HttpResponseStatus status) Sets an HTTP status to be sent along with the headers
| |
| status | back to summary |
|---|---|
| public default HttpServerResponse status(int status) Sets an HTTP status to be sent along with the headers
| |
| trailerHeaders | back to summary |
|---|---|
| public HttpServerResponse trailerHeaders(Consumer<? super HttpHeaders> trailerHeaders) Callback for setting outbound trailer headers. The callback is invoked when the response is about to be completed. Note Only headers names declared with Note Trailer headers are sent only when a message body is encoded with the chunked transfer coding Note:The headers below cannot be sent as trailer headers:
| |
| withConnection | back to summary |
|---|---|
| public HttpServerResponse withConnection(Consumer<? super Connection> withConnection) Redeclares reactor. Doc from reactor. Call the passed callback with a
| |