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
.
Modifier and Type | Method and Description |
---|---|
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
in interface HttpMessage
Copyright © 2008–2018 The Netty Project. All rights reserved.