ClientHttpRequestFactoryBuilder

Interface used to build a fully configured ClientHttpRequestFactory. Builders for Apache HTTP Components, Jetty, Reactor, JDK and simple client can be obtained using the factory methods on this interface. The of and of methods may be used to instantiate other ClientHttpRequestFactory instances using reflection.

Author

Phillip Webb

Since

3.4.0

Parameters

Functions

Link copied to clipboard
open fun build(): T
Build a default configured ClientHttpRequestFactory.
abstract fun build(settings: ClientHttpRequestFactorySettings): T
Build a fully configured ClientHttpRequestFactory, applying the given settings if they are provided.
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.