Package-level declarations

Types

Link copied to clipboard
class HttpClient(val engine: HttpClientEngine, userConfig: HttpClientConfig<out HttpClientEngineConfig> = HttpClientConfig()) : CoroutineScope, Closeable

A multiplatform asynchronous HTTP client that allows you to make requests, handle responses, and extend its functionality with plugins such as authentication, JSON serialization, and more.

Link copied to clipboard

A mutable HttpClient configuration used to adjust settings, install plugins and interceptors.

Link copied to clipboard

A container is searched across dependencies using ServiceLoader to find client implementations. An implementation of this interface provides HTTP client factory and only used to find the default client engine when HttpClient function is called with no particular client implementation specified

Functions

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

A multiplatform asynchronous HTTP client that allows you to make requests, handle responses, and extend its functionality with plugins such as authentication, JSON serialization, and more.

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

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

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

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