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()
Returns the method of this request.
|
java.lang.String |
getUri()
Returns the URI (or path) of this request.
|
void |
setMethod(HttpMethod method)
Sets the method of this request.
|
void |
setUri(java.lang.String uri)
Sets the URI (or path) of this request.
|
getContent, getProtocolVersion, headers, isChunked, setChunked, setContent, setProtocolVersion
HttpMethod getMethod()
void setMethod(HttpMethod method)
java.lang.String getUri()
void setUri(java.lang.String uri)