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 ClientCookieEncoder.
| 限定符和类型 | 方法和说明 |
|---|---|
HttpMethod |
getMethod()
已过时。
Use
method() instead. |
java.lang.String |
getUri()
已过时。
Use
uri() instead. |
HttpMethod |
method()
Returns the
HttpMethod of this HttpRequest. |
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)
|
java.lang.String |
uri()
Returns the requested URI (or alternatively, path)
|
getProtocolVersion, headers, protocolVersiongetDecoderResultdecoderResult, setDecoderResult@Deprecated HttpMethod getMethod()
method() instead.HttpMethod method()
HttpMethod of this HttpRequest.HttpMethod of this HttpRequestHttpRequest setMethod(HttpMethod method)
HttpMethod of this HttpRequest.@Deprecated java.lang.String getUri()
uri() instead.java.lang.String uri()
HttpRequest setUri(java.lang.String uri)
HttpRequest setProtocolVersion(HttpVersion version)
HttpMessageHttpMessagesetProtocolVersion 在接口中 HttpMessage