withTlsSocketStrategyFactory

open fun withTlsSocketStrategyFactory(tlsSocketStrategyFactory: (SslBundle) -> TlsSocketStrategy): HttpComponentsHttpClientBuilder

Return a new HttpComponentsHttpClientBuilder with a replacement TlsSocketStrategy factory.

Return

a new HttpComponentsHttpClientBuilder instance

Parameters

tlsSocketStrategyFactory

the new factory used to create a TlsSocketStrategy for a given SslBundle