CIO
An asynchronous coroutine-based engine that can be used on JVM, Android, and Kotlin/Native.
To create the client with this engine, pass it to the HttpClient
constructor:
val client = HttpClient(CIO)
Content copied to clipboard
To configure the engine, pass settings exposed by CIOEngineConfig to the engine
method:
val client = HttpClient(CIO) {
engine {
// this: CIOEngineConfig
}
}
Content copied to clipboard
You can learn more about client engines from Engines.
Functions
Link copied to clipboard
open override fun create(block: CIOEngineConfig.() -> Unit): HttpClientEngine
Content copied to clipboard