public interface HttpResponse extends HttpMessage
Unlike the Servlet API, Cookie
support is provided
separately via ServerCookieDecoder
,
ClientCookieDecoder
,
ServerCookieEncoder
,
and @io.netty.handler.codec.http.cookie.ClientCookieEncoder
.
限定符和类型 | 方法和说明 |
---|---|
HttpResponseStatus |
getStatus()
Returns the status of this
HttpResponse . |
HttpResponse |
setProtocolVersion(HttpVersion version)
Set the protocol version of this
HttpMessage |
HttpResponse |
setStatus(HttpResponseStatus status)
Set the status of this
HttpResponse . |
getProtocolVersion, headers
getDecoderResult, setDecoderResult
HttpResponseStatus getStatus()
HttpResponse
.HttpResponseStatus
of this HttpResponse
HttpResponse setStatus(HttpResponseStatus status)
HttpResponse
.HttpResponse setProtocolVersion(HttpVersion version)
HttpMessage
HttpMessage
setProtocolVersion
在接口中 HttpMessage