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
.
Modifier and Type | Method and Description |
---|---|
HttpMethod |
getMethod()
Deprecated.
Use
method() instead. |
String |
getUri()
Deprecated.
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(String uri)
Set the requested URI (or alternatively, path)
|
String |
uri()
Returns the requested URI (or alternatively, path)
|
getProtocolVersion, headers, protocolVersion
getDecoderResult
decoderResult, setDecoderResult
@Deprecated HttpMethod getMethod()
method()
instead.HttpMethod method()
HttpMethod
of this HttpRequest
.HttpMethod
of this HttpRequest
HttpRequest setMethod(HttpMethod method)
HttpMethod
of this HttpRequest
.@Deprecated String getUri()
uri()
instead.String uri()
HttpRequest setUri(String uri)
HttpRequest setProtocolVersion(HttpVersion version)
HttpMessage
HttpMessage
setProtocolVersion
in interface HttpMessage
Copyright © 2008–2017 The Netty Project. All rights reserved.