Package io.netty.handler.codec.http
Interface HttpResponse
- All Superinterfaces:
DecoderResultProvider
,HttpMessage
,HttpObject
- All Known Subinterfaces:
FullHttpResponse
- All Known Implementing Classes:
DefaultFullHttpResponse
,DefaultHttpResponse
,HttpObjectAggregator.AggregatedFullHttpResponse
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 thisHttpMessage
setStatus
(HttpResponseStatus status) Set the status of thisHttpResponse
.status()
Returns the status of thisHttpResponse
.Methods inherited from interface io.netty.handler.codec.DecoderResultProvider
decoderResult, setDecoderResult
Methods inherited from interface io.netty.handler.codec.http.HttpMessage
getProtocolVersion, headers, protocolVersion
Methods inherited from interface io.netty.handler.codec.http.HttpObject
getDecoderResult
-
Method Details
-
getStatus
Deprecated.Usestatus()
instead. -
status
HttpResponseStatus status()Returns the status of thisHttpResponse
.- Returns:
- The
HttpResponseStatus
of thisHttpResponse
-
setStatus
Set the status of thisHttpResponse
. -
setProtocolVersion
Description copied from interface:HttpMessage
Set the protocol version of thisHttpMessage
- Specified by:
setProtocolVersion
in interfaceHttpMessage
-
status()
instead.