Package io.netty.handler.codec.http
Interface HttpRequest
- All Superinterfaces:
io.netty.handler.codec.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.
-
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 io.netty.handler.codec.DecoderResultProvider
decoderResult, setDecoderResultMethods inherited from interface io.netty.handler.codec.http.HttpMessage
getProtocolVersion, headers, protocolVersionMethods inherited from interface io.netty.handler.codec.http.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
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:HttpMessageSet the protocol version of thisHttpMessage- Specified by:
setProtocolVersionin interfaceHttpMessage
-
method()instead.