httpClient

actual fun httpClient(config: HttpClientConfig<*>.() -> Unit): HttpClient(source)

Creates an HTTP client with the specified configuration.

Return

The created HTTP client.

Parameters

config

The configuration block for the HTTP client.

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

Creates a new instance of HttpClient with the given configuration.

Return

A new instance of HttpClient.

Parameters

config

The configuration block for HttpClient. If not provided, default configuration will be used.

actual fun httpClient(config: HttpClientConfig<*>.() -> Unit): HttpClient(source)