Apache
Deprecated
Apache engine is deprecated. Consider using Apache5 engine instead.
Replace with
import io.ktor.client.engine.apache5.Apache5
Content copied to clipboard
Apache5Content copied to clipboard
A JVM client engine that uses the Apache HTTP client.
To create the client with this engine, pass it to the HttpClient constructor:
val client = HttpClient(Apache)Content copied to clipboard
To configure the engine, pass settings exposed by ApacheEngineConfig to the engine method:
val client = HttpClient(Apache) {
engine {
// this: ApacheEngineConfig
}
}Content copied to clipboard
You can learn more about client engines from Engines.