Package | Description |
---|---|
org.springframework.web.reactive.function.client |
Provides a reactive
WebClient
that builds on top of the
org.springframework.http.client.reactive reactive HTTP adapter layer. |
Modifier and Type | Method and Description |
---|---|
WebClient.Builder |
WebClient.Builder.apply(java.util.function.Consumer<WebClient.Builder> builderConsumer)
Shortcut for pre-packaged customizations to WebTest builder.
|
WebClient.Builder |
WebClient.Builder.baseUrl(java.lang.String baseUrl)
Configure a base URL for requests performed through the client.
|
static WebClient.Builder |
WebClient.builder()
Obtain a
WebClient builder. |
WebClient.Builder |
WebClient.Builder.clientConnector(ClientHttpConnector connector)
Configure the
ClientHttpConnector to use. |
WebClient.Builder |
WebClient.Builder.clone()
Clone this
WebClient.Builder |
WebClient.Builder |
WebClient.Builder.defaultCookie(java.lang.String cookieName,
java.lang.String... cookieValues)
Add the given header to all requests that haven't added it.
|
WebClient.Builder |
WebClient.Builder.defaultCookies(java.util.function.Consumer<MultiValueMap<java.lang.String,java.lang.String>> cookiesConsumer)
Manipulate the default cookies with the given consumer.
|
WebClient.Builder |
WebClient.Builder.defaultHeader(java.lang.String headerName,
java.lang.String... headerValues)
Add the given header to all requests that have not added it.
|
WebClient.Builder |
WebClient.Builder.defaultHeaders(java.util.function.Consumer<HttpHeaders> headersConsumer)
Manipulate the default headers with the given consumer.
|
WebClient.Builder |
WebClient.Builder.defaultUriVariables(java.util.Map<java.lang.String,?> defaultUriVariables)
Configure default URI variable values that will be used when expanding
URI templates using a
Map . |
WebClient.Builder |
WebClient.Builder.exchangeFunction(ExchangeFunction exchangeFunction)
Provide a pre-configured
ExchangeFunction instance. |
WebClient.Builder |
WebClient.Builder.exchangeStrategies(ExchangeStrategies strategies)
Configure the
ExchangeStrategies to use. |
WebClient.Builder |
WebClient.Builder.filter(ExchangeFilterFunction filter)
Add the given filter to the filter chain.
|
WebClient.Builder |
WebClient.Builder.filters(java.util.function.Consumer<java.util.List<ExchangeFilterFunction>> filtersConsumer)
Manipulate the filters with the given consumer.
|
WebClient.Builder |
WebClient.mutate()
Return a builder for a new
WebClient with properties replicated
from the current WebClient instance, but without affecting it. |
WebClient.Builder |
WebClient.Builder.uriBuilderFactory(UriBuilderFactory uriBuilderFactory)
Provide a pre-configured
UriBuilderFactory instance. |
Modifier and Type | Method and Description |
---|---|
WebClient.Builder |
WebClient.Builder.apply(java.util.function.Consumer<WebClient.Builder> builderConsumer)
Shortcut for pre-packaged customizations to WebTest builder.
|