Package io.netty.handler.codec.http
Interface HttpResponse
- All Superinterfaces:
io.netty.handler.codec.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.
-
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 io.netty.handler.codec.DecoderResultProvider
decoderResult, setDecoderResultMethods inherited from interface io.netty.handler.codec.http.HttpMessage
getProtocolVersion, headers, protocolVersionMethods 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
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.