-
- 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,
Cookie
support is provided separately viaServerCookieDecoder
,ClientCookieDecoder
,ServerCookieEncoder
, andClientCookieEncoder
.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description HttpResponse
setProtocolVersion(HttpVersion version)
Set the protocol version of thisHttpMessage
HttpResponse
setStatus(HttpResponseStatus status)
Set the status of thisHttpResponse
.HttpResponseStatus
status()
Returns the status of thisHttpResponse
.-
Methods inherited from interface io.netty5.handler.codec.DecoderResultProvider
decoderResult, setDecoderResult
-
Methods inherited from interface io.netty5.handler.codec.http.HttpMessage
getProtocolVersion, headers, protocolVersion
-
-
-
-
Method Detail
-
status
HttpResponseStatus status()
Returns the status of thisHttpResponse
.- Returns:
- The
HttpResponseStatus
of thisHttpResponse
-
setStatus
HttpResponse setStatus(HttpResponseStatus status)
Set the status of thisHttpResponse
.
-
setProtocolVersion
HttpResponse setProtocolVersion(HttpVersion version)
Description copied from interface:HttpMessage
Set the protocol version of thisHttpMessage
- Specified by:
setProtocolVersion
in interfaceHttpMessage
-
-