-
- All Superinterfaces:
DecoderResultProvider,HttpMessage,HttpObject
- All Known Subinterfaces:
FullHttpRequest
- All Known Implementing Classes:
DefaultFullHttpRequest,DefaultHttpRequest
public interface HttpRequest extends HttpMessage
An HTTP request.Accessing Query Parameters and Cookie
Unlike the Servlet API, a query string is constructed and decomposed by
QueryStringEncoderandQueryStringDecoder.Cookiesupport is also provided separately viaServerCookieDecoder,ClientCookieDecoder,ServerCookieEncoder, andClientCookieEncoder.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description HttpMethodmethod()Returns theHttpMethodof thisHttpRequest.HttpRequestsetMethod(HttpMethod method)Set theHttpMethodof thisHttpRequest.HttpRequestsetProtocolVersion(HttpVersion version)Set the protocol version of thisHttpMessageHttpRequestsetUri(String uri)Set the requested URI (or alternatively, path)Stringuri()Returns the requested URI (or alternatively, path)-
Methods inherited from interface io.netty5.handler.codec.DecoderResultProvider
decoderResult, setDecoderResult
-
Methods inherited from interface io.netty5.handler.codec.http.HttpMessage
getProtocolVersion, headers, protocolVersion
-
-
-
-
Method Detail
-
method
HttpMethod method()
Returns theHttpMethodof thisHttpRequest.- Returns:
- The
HttpMethodof thisHttpRequest
-
setMethod
HttpRequest setMethod(HttpMethod method)
Set theHttpMethodof thisHttpRequest.
-
uri
String uri()
Returns the requested URI (or alternatively, path)- Returns:
- The URI being requested
-
setUri
HttpRequest setUri(String uri)
Set the requested URI (or alternatively, path)
-
setProtocolVersion
HttpRequest setProtocolVersion(HttpVersion version)
Description copied from interface:HttpMessageSet the protocol version of thisHttpMessage- Specified by:
setProtocolVersionin interfaceHttpMessage
-
-