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(Consumer<WebClient.Builder> builderConsumer)
Apply the given
Consumer to this builder instance. |
WebClient.Builder |
WebClient.Builder.baseUrl(String baseUrl)
Configure a base URL for requests.
|
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.codecs(Consumer<ClientCodecConfigurer> configurer)
|
WebClient.Builder |
WebClient.Builder.defaultCookie(String cookie,
String... values)
Global option to specify a cookie to be added to every request,
if the request does not already contain such a cookie.
|
WebClient.Builder |
WebClient.Builder.defaultCookies(Consumer<MultiValueMap<String,String>> cookiesConsumer)
Provides access to every
defaultCookie(String, String...)
declared so far with the possibility to add, replace, or remove. |
WebClient.Builder |
WebClient.Builder.defaultHeader(String header,
String... values)
Global option to specify a header to be added to every request,
if the request does not already contain such a header.
|
WebClient.Builder |
WebClient.Builder.defaultHeaders(Consumer<HttpHeaders> headersConsumer)
Provides access to every
defaultHeader(String, String...)
declared so far with the possibility to add, replace, or remove. |
WebClient.Builder |
WebClient.Builder.defaultRequest(Consumer<WebClient.RequestHeadersSpec<?>> defaultRequest)
Provide a consumer to modify every request being built just before the
call to
exchange() . |
WebClient.Builder |
WebClient.Builder.defaultUriVariables(Map<String,?> defaultUriVariables)
Configure default URL variable values to use when expanding URI
templates with a
Map . |
WebClient.Builder |
WebClient.Builder.exchangeFunction(ExchangeFunction exchangeFunction)
|
WebClient.Builder |
WebClient.Builder.exchangeStrategies(Consumer<ExchangeStrategies.Builder> configurer)
Deprecated.
as of 5.1.13 in favor of
codecs(Consumer) |
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 end of the filter chain.
|
WebClient.Builder |
WebClient.Builder.filters(Consumer<List<ExchangeFilterFunction>> filtersConsumer)
Manipulate the filters with the given consumer.
|
WebClient.Builder |
WebClient.mutate()
Return a builder to create a new
WebClient whose settings are
replicated from the current WebClient . |
WebClient.Builder |
WebClient.Builder.uriBuilderFactory(UriBuilderFactory uriBuilderFactory)
Provide a pre-configured
UriBuilderFactory instance. |
Modifier and Type | Method and Description |
---|---|
WebClient.Builder |
WebClient.Builder.apply(Consumer<WebClient.Builder> builderConsumer)
Apply the given
Consumer to this builder instance. |