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 this request's headers with the given consumer.
|
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
HttpRequest.getURI() . |
ServerHttpRequest.Builder |
ServerHttpRequest.Builder.uri(java.net.URI uri)
Set the URI to return.
|
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.
|