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 |
---|---|
MultiValueMap<String,HttpCookie> |
getCookies()
Return a read-only map of cookies sent by the client.
|
String |
getId()
Return an id that represents the underlying connection, if available,
or the request for the purpose of correlating log messages.
|
default InetSocketAddress |
getLocalAddress()
Return the local address the request was accepted on, if available.
|
RequestPath |
getPath()
Returns a structured representation of the request path including the
context path + path within application portions, path segments with
encoded and decoded values, and path parameters.
|
MultiValueMap<String,String> |
getQueryParams()
Return a read-only map with parsed and decoded query parameter values.
|
default InetSocketAddress |
getRemoteAddress()
Return the remote address where this request is connected to, if available.
|
default SslInfo |
getSslInfo()
Return the SSL session information if the request has been transmitted
over a secure protocol including SSL certificates, if available.
|
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, getMethodValue, getURI
getBody
getHeaders
String getId()
ServerWebExchange.getLogPrefix()
RequestPath getPath()
MultiValueMap<String,String> getQueryParams()
MultiValueMap<String,HttpCookie> getCookies()
@Nullable default InetSocketAddress getRemoteAddress()
@Nullable default InetSocketAddress getLocalAddress()
@Nullable default SslInfo getSslInfo()
null
if none availabledefault ServerHttpRequest.Builder mutate()
ServerHttpRequestDecorator
and returning either mutated
values or delegating back to this instance.