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. |
org.springframework.util.MultiValueMap<String,HttpCookie> |
getCookies()
Return a read-only map of cookies sent by the client.
|
org.springframework.util.MultiValueMap<String,String> |
getQueryParams()
Return a read-only map with parsed and decoded query parameter values.
|
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, getURIgetBodygetHeadersdefault 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.org.springframework.util.MultiValueMap<String,String> getQueryParams()
org.springframework.util.MultiValueMap<String,HttpCookie> getCookies()
default ServerHttpRequest.Builder mutate()
ServerHttpRequestDecorator and returning either mutated
values or delegating back to this instance.