HttpClient

Creates an asynchronous HttpClient with the specified HttpClientEngineFactory and optional block configuration. Note that a specific platform may require a specific engine for processing requests. You can learn more about available engines from Engines.


Creates an asynchronous HttpClient with the specified HttpClientEngine and optional block configuration. Note that a specific platform may require a specific engine for processing requests. You can learn more about available engines from Engines.


expect fun HttpClient(block: HttpClientConfig<*>.() -> Unit = {}): HttpClient

Creates an asynchronous HttpClient with the specified block configuration.

Note that the client requires an engine for processing network requests. The HttpClientEngine is selected from the dependencies.

actual fun HttpClient(block: HttpClientConfig<*>.() -> Unit): HttpClient

Constructs an asynchronous HttpClient using optional block for configuring this client.

The HttpClientEngine is selected from the dependencies. https://ktor.io/docs/http-client-engines.html

actual fun HttpClient(block: HttpClientConfig<*>.() -> Unit): HttpClient

Constructs an asynchronous HttpClient using optional block for configuring this client.

The HttpClientEngine is selected from the dependencies. https://ktor.io/docs/http-client-engines.html