OkHttp

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

Functions

create

fun create(block: OkHttpConfig.() -> 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.