DarwinLegacy
Deprecated
DarwinLegacy engine is deprecated. Consider using Darwin engine instead.
Replace with
import io.ktor.client.engine.darwin.Darwin
Content copied to clipboard
DarwinContent copied to clipboard
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)Content copied to clipboard
To configure the engine, pass settings exposed by DarwinLegacyClientEngineConfig to the engine method:
val client = HttpClient(DarwinLegacy) {
engine {
// this: DarwinLegacyClientEngineConfig
}
}Content copied to clipboard
You can learn more about client engines from Engines.