# Uses of Interface
org.springframework.web.client.RestClient.Builder

Packages that use RestClient.Builder
Package
Description
org.springframework.web.client
Core package of the client-side web support.

## Uses of RestClient.Builder in org.springframework.web.client

Methods in org.springframework.web.client that return RestClient.Builder
Modifier and Type
Method
Description
`RestClient.Builder`
RestClient.Builder.`apply(Consumer<RestClient.Builder> builderConsumer)`
Apply the given `Consumer` to this builder instance.
`RestClient.Builder`
RestClient.Builder.`baseUrl(String baseUrl)`
Configure a base URL for requests.
`RestClient.Builder`
RestClient.Builder.`baseUrl(URI baseUrl)`
Configure a base `URI` for requests.
`static RestClient.Builder`
RestClient.`builder()`
Obtain a `RestClient` builder.
`static RestClient.Builder`
RestClient.`builder(RestTemplate restTemplate)`
Obtain a `RestClient` builder based on the configuration of the given `RestTemplate`.
`RestClient.Builder`
RestClient.Builder.`clone()`
Clone this `RestClient.Builder`.
`RestClient.Builder`
RestClient.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.
`RestClient.Builder`
RestClient.Builder.`defaultCookies(Consumer<org.springframework.util.MultiValueMap<String,String>> cookiesConsumer)`
Provides access to every `defaultCookie(String, String...)` declared so far with the possibility to add, replace, or remove.
`RestClient.Builder`
RestClient.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.
`RestClient.Builder`
RestClient.Builder.`defaultHeaders(Consumer<HttpHeaders> headersConsumer)`
Provide a consumer to access to every default header declared so far, with the possibility to add, replace, or remove.
`RestClient.Builder`
RestClient.Builder.`defaultRequest(Consumer<RestClient.RequestHeadersSpec<?>> defaultRequest)`
Provide a consumer to customize every request being built.
`RestClient.Builder`
RestClient.Builder.`defaultStatusHandler(Predicate<HttpStatusCode> statusPredicate, RestClient.ResponseSpec.ErrorHandler errorHandler)`
Register a default status handler to apply to every response.
`RestClient.Builder`
RestClient.Builder.`defaultStatusHandler(ResponseErrorHandler errorHandler)`
Register a default status handler to apply to every response.
`RestClient.Builder`
RestClient.Builder.`defaultUriVariables(Map<String,?> defaultUriVariables)`
Configure default URL variable values to use when expanding URI templates with a `Map`.
`RestClient.Builder`
RestClient.Builder.`messageConverters(Consumer<List<HttpMessageConverter<?>>> configurer)`
Configure the message converters for the `RestClient` to use.
`RestClient.Builder`
RestClient.Builder.`messageConverters(List<HttpMessageConverter<?>> messageConverters)`
Set the message converters for the `RestClient` to use.
`RestClient.Builder`
RestClient.`mutate()`
Return a builder to create a new `RestClient` whose settings are replicated from this `RestClient`.
`RestClient.Builder`
RestClient.Builder.`observationConvention(ClientRequestObservationConvention observationConvention)`
Configure the `ObservationConvention` to use for collecting metadata for the request observation.
`RestClient.Builder`
RestClient.Builder.`observationRegistry(io.micrometer.observation.ObservationRegistry observationRegistry)`
Configure the `ObservationRegistry` to use for recording HTTP client observations.
`RestClient.Builder`
RestClient.Builder.`requestFactory(ClientHttpRequestFactory requestFactory)`
Configure the `ClientHttpRequestFactory` to use.
`RestClient.Builder`
RestClient.Builder.`requestInitializer(ClientHttpRequestInitializer initializer)`
Add the given request initializer to the end of the initializer chain.
`RestClient.Builder`
RestClient.Builder.`requestInitializers(Consumer<List<ClientHttpRequestInitializer>> initializersConsumer)`
Manipulate the initializers with the given consumer.
`RestClient.Builder`
RestClient.Builder.`requestInterceptor(ClientHttpRequestInterceptor interceptor)`
Add the given request interceptor to the end of the interceptor chain.
`RestClient.Builder`
RestClient.Builder.`requestInterceptors(Consumer<List<ClientHttpRequestInterceptor>> interceptorsConsumer)`
Manipulate the interceptors with the given consumer.
`RestClient.Builder`
RestClient.Builder.`uriBuilderFactory(UriBuilderFactory uriBuilderFactory)`
Provide a pre-configured `UriBuilderFactory` instance.
Method parameters in org.springframework.web.client with type arguments of type RestClient.Builder
Modifier and Type
Method
Description
`RestClient.Builder`
RestClient.Builder.`apply(Consumer<RestClient.Builder> builderConsumer)`
Apply the given `Consumer` to this builder instance.