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 CookieDecoder
, ClientCookieEncoder
,
and @ServerCookieEncoder
.
Modifier and Type | Method and Description |
---|---|
HttpMethod |
getMethod()
Returns the
HttpMethod of this HttpRequest . |
String |
getUri()
Returns the requested URI (or alternatively, path)
|
void |
setMethod(HttpMethod method)
Sets the
HttpMethod of this HttpRequest . |
void |
setUri(String uri)
Sets the URI (or alternatively, path) being requested.
|
addHeader, clearHeaders, containsHeader, getContent, getHeader, getHeaderNames, getHeaders, getHeaders, getProtocolVersion, getTransferEncoding, removeHeader, setContent, setHeader, setHeader, setProtocolVersion, setTransferEncoding
HttpMethod getMethod()
HttpMethod
of this HttpRequest
.HttpMethod
of this HttpRequest
void setMethod(HttpMethod method)
HttpMethod
of this HttpRequest
.The
- HttpMethod
to setString getUri()
void setUri(String uri)
uri
- The URI being requestedCopyright © 2008-2012 The Netty Project. All Rights Reserved.