JdkClientHttpRequestFactoryBuilder

Builder for jdk.

Author

Phillip Webb

Andy Wilkinson

Scott Frederick

Since

3.4.0

Functions

Link copied to clipboard
Build a fully configured ClientHttpRequestFactory, applying the given settings if they are provided.
open fun build(): T
Build a default configured ClientHttpRequestFactory.
Link copied to clipboard
Detect the most suitable ClientHttpRequestFactoryBuilder based on the classpath.
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
open fun <T : ClientHttpRequestFactory?> of(requestFactoryType: Class<T>): ClientHttpRequestFactoryBuilder<T>
Return a new ClientHttpRequestFactoryBuilder for the given requestFactoryType.
open fun <T : ClientHttpRequestFactory?> of(requestFactorySupplier: Supplier<T>): ClientHttpRequestFactoryBuilder<T>
Return a new ClientHttpRequestFactoryBuilder from the given supplier, using reflection to ultimately apply the ClientHttpRequestFactorySettings.
Link copied to clipboard
Link copied to clipboard
Return a new ClientHttpRequestFactoryBuilder that applies the given customizer to the ClientHttpRequestFactory after it has been built.
Link copied to clipboard
Return a new ClientHttpRequestFactoryBuilder that applies the given customizers to the ClientHttpRequestFactory after it has been built.
Link copied to clipboard
open fun withHttpClientCustomizer(httpClientCustomizer: Consumer<HttpClient.Builder>): JdkClientHttpRequestFactoryBuilder
Return a new JdkClientHttpRequestFactoryBuilder that applies additional customization to the underlying java.net.http.HttpClient.Builder.