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(String contextPath)
Set the contextPath to use.
|
ServerHttpRequest.Builder |
ServerHttpRequest.Builder.header(String headerName,
String... headerValues)
Set or override the specified header values under the given name.
|
ServerHttpRequest.Builder |
ServerHttpRequest.Builder.headers(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(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(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(Consumer<ServerHttpRequest.Builder> requestBuilderConsumer)
Configure a consumer to modify the current request using a builder.
|