Package io.netty.handler.codec.http
Interface HttpRequest
- All Superinterfaces:
DecoderResultProvider
,HttpMessage
,HttpObject
- All Known Subinterfaces:
FullHttpRequest
- All Known Implementing Classes:
DefaultFullHttpRequest
,DefaultHttpRequest
,HttpObjectAggregator.AggregatedFullHttpRequest
,HttpPostRequestEncoder.WrappedFullHttpRequest
,HttpPostRequestEncoder.WrappedHttpRequest
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 theHttpMethod
of thisHttpRequest
.setMethod
(HttpMethod method) Set theHttpMethod
of thisHttpRequest
.setProtocolVersion
(HttpVersion version) Set the protocol version of thisHttpMessage
Set the requested URI (or alternatively, path)uri()
Returns the requested URI (or alternatively, path)Methods inherited from interface io.netty.handler.codec.DecoderResultProvider
decoderResult, setDecoderResult
Methods inherited from interface io.netty.handler.codec.http.HttpMessage
getProtocolVersion, headers, protocolVersion
Methods inherited from interface io.netty.handler.codec.http.HttpObject
getDecoderResult
-
Method Details
-
getMethod
Deprecated.Usemethod()
instead. -
method
HttpMethod method()Returns theHttpMethod
of thisHttpRequest
.- Returns:
- The
HttpMethod
of thisHttpRequest
-
setMethod
Set theHttpMethod
of thisHttpRequest
. -
getUri
Deprecated.Useuri()
instead. -
uri
String uri()Returns the requested URI (or alternatively, path)- Returns:
- The URI being requested
-
setUri
Set the requested URI (or alternatively, path) -
setProtocolVersion
Description copied from interface:HttpMessage
Set the protocol version of thisHttpMessage
- Specified by:
setProtocolVersion
in interfaceHttpMessage
-
method()
instead.