DarwinLegacy

Deprecated

DarwinLegacy engine is deprecated. Consider using Darwin engine instead.

Replace with

import io.ktor.client.engine.darwin.Darwin
Darwin

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(DarwinLegacy)

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

val client = HttpClient(DarwinLegacy) {
engine {
// this: DarwinLegacyClientEngineConfig
}
}

You can learn more about client engines from Engines.

Report a problem

Functions

Link copied to clipboard