Uses of Interface
org.springframework.web.reactive.function.client.WebClient.Builder
Package
Description
Provides a reactive
WebClient
that builds on top of the
org.springframework.http.client.reactive
reactive HTTP adapter layer.-
Uses of WebClient.Builder in org.springframework.web.reactive.function.client
Modifier and TypeMethodDescriptionWebClient.Builder.apply
(Consumer<WebClient.Builder> builderConsumer) Apply the givenConsumer
to this builder instance.Configure a base URL for requests.static WebClient.Builder
WebClient.builder()
Obtain aWebClient
builder.WebClient.Builder.clientConnector
(ClientHttpConnector connector) Configure theClientHttpConnector
to use.WebClient.Builder.clone()
Clone thisWebClient.Builder
.WebClient.Builder.codecs
(Consumer<ClientCodecConfigurer> configurer) 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.defaultCookies
(Consumer<MultiValueMap<String, String>> cookiesConsumer) Provides access to everydefaultCookie(String, String...)
declared so far with the possibility to add, replace, or remove.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.defaultHeaders
(Consumer<HttpHeaders> headersConsumer) Provides access to everydefaultHeader(String, String...)
declared so far with the possibility to add, replace, or remove.WebClient.Builder.defaultRequest
(Consumer<WebClient.RequestHeadersSpec<?>> defaultRequest) Provide a consumer to customize every request being built.WebClient.Builder.defaultStatusHandler
(Predicate<HttpStatusCode> statusPredicate, Function<ClientResponse, reactor.core.publisher.Mono<? extends Throwable>> exceptionFunction) Register a defaultstatus handler
to apply to every response.WebClient.Builder.defaultUriVariables
(Map<String, ?> defaultUriVariables) Configure default URL variable values to use when expanding URI templates with aMap
.WebClient.Builder.exchangeFunction
(ExchangeFunction exchangeFunction) WebClient.Builder.exchangeStrategies
(Consumer<ExchangeStrategies.Builder> configurer) Deprecated.WebClient.Builder.exchangeStrategies
(ExchangeStrategies strategies) Configure theExchangeStrategies
to use.WebClient.Builder.filter
(ExchangeFilterFunction filter) Add the given filter to the end of the filter chain.WebClient.Builder.filters
(Consumer<List<ExchangeFilterFunction>> filtersConsumer) Manipulate the filters with the given consumer.WebClient.mutate()
Return a builder to create a newWebClient
whose settings are replicated from the currentWebClient
.WebClient.Builder.observationConvention
(ClientRequestObservationConvention observationConvention) Provide anObservationConvention
to use for collecting metadata for the request observation.WebClient.Builder.observationRegistry
(io.micrometer.observation.ObservationRegistry observationRegistry) Provide anObservationRegistry
to use for recording observations for HTTP client calls.WebClient.Builder.uriBuilderFactory
(UriBuilderFactory uriBuilderFactory) Provide a pre-configuredUriBuilderFactory
instance.Modifier and TypeMethodDescriptionWebClient.Builder.apply
(Consumer<WebClient.Builder> builderConsumer) Apply the givenConsumer
to this builder instance.
codecs(Consumer)