public interface ServerHttpRequest extends HttpRequest, ReactiveHttpInputMessage
Modifier and Type | Interface and Description |
---|---|
static interface |
ServerHttpRequest.Builder
Builder for mutating an existing
ServerHttpRequest . |
Modifier and Type | Method and Description |
---|---|
default String |
getContextPath()
Returns the portion of the URL path that represents the context path for
the current
HttpHandler . |
MultiValueMap<String,HttpCookie> |
getCookies()
Return a read-only map of cookies sent by the client.
|
MultiValueMap<String,String> |
getQueryParams()
Return a read-only map with parsed and decoded query parameter values.
|
Optional<InetSocketAddress> |
getRemoteAddress()
Returns the remote address where this request is connected to.
|
default ServerHttpRequest.Builder |
mutate()
Return a builder to mutate properties of this request by wrapping it
with
ServerHttpRequestDecorator and returning either mutated
values or delegating back to this instance. |
getMethod, getURI
getBody
getHeaders
default String getContextPath()
HttpHandler
. The context path is always at the
beginning of the request path. It starts with "/" but but does not end
with "/". This method may return an empty string if no context path is
configured.MultiValueMap<String,String> getQueryParams()
MultiValueMap<String,HttpCookie> getCookies()
Optional<InetSocketAddress> getRemoteAddress()
default ServerHttpRequest.Builder mutate()
ServerHttpRequestDecorator
and returning either mutated
values or delegating back to this instance.