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 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(String cookieName,
String... cookieValues)
Add the given header to all requests that haven't added it.
|
WebClient.Builder |
WebClient.Builder.defaultCookies(Consumer<MultiValueMap<String,String>> cookiesConsumer)
Manipulate the default cookies with the given consumer.
|
WebClient.Builder |
WebClient.Builder.defaultHeader(String headerName,
String... headerValues)
Add the given header to all requests that have not added it.
|
WebClient.Builder |
WebClient.Builder.defaultHeaders(Consumer<HttpHeaders> headersConsumer)
Manipulate the default headers with the given consumer.
|
WebClient.Builder |
WebClient.Builder.defaultUriVariables(Map<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)
|
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(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. |