DarwinLegacy
object 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)
Content copied to clipboard
To configure the engine, pass settings exposed by DarwinClientEngineConfig to the engine
method:
val client = HttpClient(Darwin) {
engine {
// this: DarwinClientEngineConfig
}
}
Content copied to clipboard
You can learn more about client engines from Engines.