Interface HttpResponse
- All Superinterfaces:
DecoderResultProvider, HttpMessage, HttpObject
- All Known Subinterfaces:
FullHttpResponse
- All Known Implementing Classes:
DefaultFullHttpResponse, DefaultHttpResponse
An HTTP response.
Accessing Cookies
Unlike the Servlet API, Cookie support is provided
separately via ServerCookieDecoder,
ClientCookieDecoder,
ServerCookieEncoder,
and ClientCookieEncoder.
- See Also:
-
Method Summary
Modifier and TypeMethodDescriptionDeprecated.setProtocolVersion(HttpVersion version) Set the protocol version of thisHttpMessagesetStatus(HttpResponseStatus status) Set the status of thisHttpResponse.status()Returns the status of thisHttpResponse.Methods inherited from interface DecoderResultProvider
decoderResult, setDecoderResultModifier and TypeMethodDescriptionReturns the result of decoding this object.voidsetDecoderResult(DecoderResult result) Updates the result of decoding this object.Methods inherited from interface HttpMessage
getProtocolVersion, headers, protocolVersionModifier and TypeMethodDescriptionDeprecated.UseHttpMessage.protocolVersion()instead.headers()Returns the headers of this message.Returns the protocol version of thisHttpMessageMethods inherited from interface HttpObject
getDecoderResult
-
Method Details
-
getStatus
Deprecated.Usestatus()instead. -
status
HttpResponseStatus status()Returns the status of thisHttpResponse.- Returns:
- The
HttpResponseStatusof thisHttpResponse
-
setStatus
Set the status of thisHttpResponse. -
setProtocolVersion
Description copied from interface:HttpMessageSet the protocol version of thisHttpMessage- Specified by:
setProtocolVersionin interfaceHttpMessage
-
status()instead.