DarwinLegacy

A Kotlin/Native client engine that targets Darwin-based operating systems (such as macOS, iOS, tvOS, and so on) and uses NSURLSession internally.

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

val client = HttpClient(Darwin)

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

val client = HttpClient(Darwin) {
engine {
// this: DarwinClientEngineConfig
}
}

You can learn more about client engines from Engines.

Functions

Link copied to clipboard