-
- 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
QueryStringEncoder
andQueryStringDecoder
.Cookie
support is also provided separately viaServerCookieDecoder
,ClientCookieDecoder
,ServerCookieEncoder
, andClientCookieEncoder
.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description HttpMethod
method()
Returns theHttpMethod
of thisHttpRequest
.HttpRequest
setMethod(HttpMethod method)
Set theHttpMethod
of thisHttpRequest
.HttpRequest
setProtocolVersion(HttpVersion version)
Set the protocol version of thisHttpMessage
HttpRequest
setUri(String uri)
Set the requested URI (or alternatively, path)String
uri()
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 theHttpMethod
of thisHttpRequest
.- Returns:
- The
HttpMethod
of thisHttpRequest
-
setMethod
HttpRequest setMethod(HttpMethod method)
Set theHttpMethod
of 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:HttpMessage
Set the protocol version of thisHttpMessage
- Specified by:
setProtocolVersion
in interfaceHttpMessage
-
-