engine

fun engine(block: T.() -> Unit)

A builder for configuring engine-specific settings in HttpClientEngineConfig, such as dispatcher, thread count, proxy, and more.

val client = HttpClient(CIO) { // HttpClientConfig<CIOEngineConfig>
engine { // CIOEngineConfig.() -> Unit
proxy = ProxyBuilder.http("proxy.example.com", 8080)
}

You can learn more from Engines.