HttpClientEngineFactory

interface HttpClientEngineFactory<out T : HttpClientEngineConfig>

Factory of HttpClientEngine with a specific T of HttpClientEngineConfig.

Functions

create

abstract fun create(
    block: T.() -> Unit = {}
): HttpClientEngine

Creates a new HttpClientEngine optionally specifying a block configuring T.

Extension Functions

config

fun <T : HttpClientEngineConfig> HttpClientEngineFactory<T>.config(
    nested: T.() -> Unit
): HttpClientEngineFactory<T>

Creates a new HttpClientEngineFactory based on this one with further configurations from the nested block.

Inheritors

Android

HttpClientEngineFactory using a UrlConnection based backend implementation without additional dependencies with the the associated configuration AndroidEngineConfig.

Apache

HttpClientEngineFactory using org.apache.httpcomponents.httpasyncclient with the the associated configuration ApacheEngineConfig.

CIO

HttpClientEngineFactory using a Coroutine based I/O implementation without additional dependencies with the the associated configuration CIOEngineConfig.

Companion

companion object Companion : 
    HttpClientEngineFactory<MockEngineConfig>

Companion

companion object Companion : 
    HttpClientEngineFactory<TestHttpClientConfig>

Jetty

HttpClientEngineFactory using org.eclipse.jetty.http2:http2-client with the the associated configuration JettyEngineConfig.

OkHttp

HttpClientEngineFactory using a OkHttp based backend implementation with the the associated configuration OkHttpConfig.