engine
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)
}
Content copied to clipboard
You can learn more from Engines.