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, setDecoderResultMethods inherited from interface HttpMessage
getProtocolVersion, headers, protocolVersionMethods 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.