withTlsSocketStrategyFactory

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

Return a new HttpComponentsClientHttpRequestFactoryBuilder with a replacement TlsSocketStrategy factory.

Return

a new HttpComponentsClientHttpRequestFactoryBuilder instance

Parameters

tlsSocketStrategyFactory

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