Curl

A Kotlin/Native client engine that can be used on desktop platforms.

To create the client with this engine, pass it to the HttpClient constructor:

val client = HttpClient(Curl)

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

val client = HttpClient(Curl) {
engine {
// this: CurlClientEngineConfig
}
}

You can learn more about client engines from Engines.

Functions

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