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 java.lang.String |
getContextPath()
Returns the portion of the URL path that represents the context path for
the current
HttpHandler . |
MultiValueMap<java.lang.String,HttpCookie> |
getCookies()
Return a read-only map of cookies sent by the client.
|
MultiValueMap<java.lang.String,java.lang.String> |
getQueryParams()
Return a read-only map with parsed and decoded query parameter values.
|
java.util.Optional<java.net.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 java.lang.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<java.lang.String,java.lang.String> getQueryParams()
MultiValueMap<java.lang.String,HttpCookie> getCookies()
java.util.Optional<java.net.InetSocketAddress> getRemoteAddress()
default ServerHttpRequest.Builder mutate()
ServerHttpRequestDecorator
and returning either mutated
values or delegating back to this instance.