Package io.netty.handler.codec.http
Interface HttpResponse
-
- All Superinterfaces:
DecoderResultProvider,HttpMessage,HttpObject
- All Known Subinterfaces:
FullHttpResponse
- All Known Implementing Classes:
DefaultFullHttpResponse,DefaultHttpResponse
public interface HttpResponse extends HttpMessage
An HTTP response.Accessing Cookies
Unlike the Servlet API,
Cookiesupport is provided separately viaServerCookieDecoder,ClientCookieDecoder,ServerCookieEncoder, andClientCookieEncoder.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Deprecated Methods Modifier and Type Method Description HttpResponseStatusgetStatus()Deprecated.Usestatus()instead.HttpResponsesetProtocolVersion(HttpVersion version)Set the protocol version of thisHttpMessageHttpResponsesetStatus(HttpResponseStatus status)Set the status of thisHttpResponse.HttpResponseStatusstatus()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 Detail
-
getStatus
@Deprecated HttpResponseStatus getStatus()
Deprecated.Usestatus()instead.
-
status
HttpResponseStatus status()
Returns the status of thisHttpResponse.- Returns:
- The
HttpResponseStatusof thisHttpResponse
-
setStatus
HttpResponse setStatus(HttpResponseStatus status)
Set the status of thisHttpResponse.
-
setProtocolVersion
HttpResponse setProtocolVersion(HttpVersion version)
Description copied from interface:HttpMessageSet the protocol version of thisHttpMessage- Specified by:
setProtocolVersionin interfaceHttpMessage
-
-