HttpClientFactory

class HttpClientFactory @JvmOverloads constructor(sslLoader: SslLoader = SslLoader(ResourceLoader.SYSTEM), sslContextFactory: SslContextFactory = SslContextFactory(sslLoader), okHttpClientCommonConfigurator: OkHttpClientCommonConfigurator = OkHttpClientCommonConfigurator(), envoyClientEndpointProvider: EnvoyClientEndpointProvider? = null, okhttpInterceptors: List<Interceptor>? = null)

Constructors

Link copied to clipboard
constructor(sslLoader: SslLoader = SslLoader(ResourceLoader.SYSTEM), sslContextFactory: SslContextFactory = SslContextFactory(sslLoader), okHttpClientCommonConfigurator: OkHttpClientCommonConfigurator = OkHttpClientCommonConfigurator(), envoyClientEndpointProvider: EnvoyClientEndpointProvider? = null, okhttpInterceptors: List<Interceptor>? = null)

Types

Link copied to clipboard
object Companion

Functions

Link copied to clipboard
fun create(config: HttpClientEndpointConfig): OkHttpClient

Returns a client initialized based on config.