public interface HttpRequest extends HttpMessage
Unlike the Servlet API, a query string is constructed and decomposed by
QueryStringEncoder
and QueryStringDecoder
.
Cookie
support is also provided
separately via ServerCookieDecoder
,
ClientCookieDecoder
,
ServerCookieEncoder
,
and @io.netty.handler.codec.http.cookie.ClientCookieEncoder
.
限定符和类型 | 方法和说明 |
---|---|
HttpMethod |
getMethod()
Returns the
HttpMethod of this HttpRequest . |
java.lang.String |
getUri()
Returns the requested URI (or alternatively, path)
|
HttpRequest |
setMethod(HttpMethod method)
Set the
HttpMethod of this HttpRequest . |
HttpRequest |
setProtocolVersion(HttpVersion version)
Set the protocol version of this
HttpMessage |
HttpRequest |
setUri(java.lang.String uri)
Set the requested URI (or alternatively, path)
|
getProtocolVersion, headers
getDecoderResult, setDecoderResult
HttpMethod getMethod()
HttpMethod
of this HttpRequest
.HttpMethod
of this HttpRequest
HttpRequest setMethod(HttpMethod method)
HttpMethod
of this HttpRequest
.java.lang.String getUri()
HttpRequest setUri(java.lang.String uri)
HttpRequest setProtocolVersion(HttpVersion version)
HttpMessage
HttpMessage
setProtocolVersion
在接口中 HttpMessage