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  HttpMethodof thisHttpRequest. | 
| HttpRequest | setMethod(HttpMethod method)Set the  HttpMethodof thisHttpRequest. | 
| 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, 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 String getUri()
uri() instead.String uri()
HttpRequest setUri(String uri)
HttpRequest setProtocolVersion(HttpVersion version)
HttpMessageHttpMessagesetProtocolVersion in interface HttpMessageCopyright © 2008–2025 The Netty Project. All rights reserved.