Package | Description |
---|---|
org.springframework.http.server.reactive |
Abstractions for reactive HTTP server support including a
ServerHttpRequest and
ServerHttpResponse along with an
HttpHandler for processing. |
org.springframework.web.server |
Core interfaces and classes for Spring's generic, reactive web support.
|
Modifier and Type | Method and Description |
---|---|
ServerHttpRequest.Builder |
ServerHttpRequest.Builder.contextPath(java.lang.String contextPath)
Set the contextPath to use.
|
ServerHttpRequest.Builder |
ServerHttpRequest.Builder.header(java.lang.String key,
java.lang.String value)
Set or override the specified header.
|
ServerHttpRequest.Builder |
ServerHttpRequest.Builder.headers(java.util.function.Consumer<HttpHeaders> headersConsumer)
Manipulate request headers.
|
ServerHttpRequest.Builder |
ServerHttpRequest.Builder.method(HttpMethod httpMethod)
Set the HTTP method to return.
|
default ServerHttpRequest.Builder |
ServerHttpRequest.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. |
ServerHttpRequest.Builder |
ServerHttpRequest.Builder.path(java.lang.String path)
Set the path to use instead of the
"rawPath" of the URI of
the request with the following conditions:
If uri is also set, the path given here
overrides the path of the given URI. |
ServerHttpRequest.Builder |
ServerHttpRequest.Builder.sslInfo(SslInfo sslInfo)
Set the SSL session information.
|
ServerHttpRequest.Builder |
ServerHttpRequest.Builder.uri(java.net.URI uri)
Set the URI to use with the following conditions:
If
path is also set, it overrides the path
of the URI provided here. |
Modifier and Type | Method and Description |
---|---|
ServerWebExchange.Builder |
ServerWebExchange.Builder.request(java.util.function.Consumer<ServerHttpRequest.Builder> requestBuilderConsumer)
Configure a consumer to modify the current request using a builder.
|