Interface HttpRequest
- All Superinterfaces:
DecoderResultProvider, HttpMessage, HttpObject
- All Known Subinterfaces:
FullHttpRequest
- All Known Implementing Classes:
DefaultFullHttpRequest, DefaultHttpRequest
An HTTP request.
Accessing Query Parameters and Cookie
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.
- See Also:
-
Method Summary
Modifier and TypeMethodDescriptionDeprecated.getUri()Deprecated.Useuri()instead.method()Returns theHttpMethodof thisHttpRequest.setMethod(HttpMethod method) Set theHttpMethodof thisHttpRequest.setProtocolVersion(HttpVersion version) Set the protocol version of thisHttpMessageSet the requested URI (or alternatively, path)uri()Returns the requested URI (or alternatively, path)Methods inherited from interface DecoderResultProvider
decoderResult, setDecoderResultModifier and TypeMethodDescriptionReturns the result of decoding this object.voidsetDecoderResult(DecoderResult result) Updates the result of decoding this object.Methods inherited from interface HttpMessage
getProtocolVersion, headers, protocolVersionModifier and TypeMethodDescriptionDeprecated.UseHttpMessage.protocolVersion()instead.headers()Returns the headers of this message.Returns the protocol version of thisHttpMessageMethods inherited from interface HttpObject
getDecoderResult
-
Method Details
-
getMethod
Deprecated.Usemethod()instead. -
method
HttpMethod method()Returns theHttpMethodof thisHttpRequest.- Returns:
- The
HttpMethodof thisHttpRequest
-
setMethod
Set theHttpMethodof thisHttpRequest. -
getUri
Deprecated.Useuri()instead. -
uri
-
setUri
Set the requested URI (or alternatively, path) -
setProtocolVersion
Description copied from interface:HttpMessageSet the protocol version of thisHttpMessage- Specified by:
setProtocolVersionin interfaceHttpMessage
-
method()instead.