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)

To configure the engine, pass settings exposed by CIOEngineConfig to the engine method:

val client = HttpClient(CIO) {
engine {
// this: CIOEngineConfig
}
}

You can learn more about client engines from Engines.

Functions

Link copied to clipboard
open override fun create(block: CIOEngineConfig.() -> Unit): HttpClientEngine
Link copied to clipboard
open override fun toString(): String