Package-level declarations

Types

Link copied to clipboard

An exception indicating that the client's engine is already closed.

Link copied to clipboard

Shared engines collection for. Use append to enable engine auto discover in HttpClient().

Link copied to clipboard
interface HttpClientEngine : CoroutineScope, Closeable

Serves as the base interface for an HttpClient's engine.

Link copied to clipboard
abstract class HttpClientEngineBase(engineName: String) : HttpClientEngine

Abstract implementation of HttpClientEngine responsible for lifecycle control of dispatcher and coroutineContext as well as proper call context management. Should be considered as the best parent class for custom HttpClientEngine implementations.

Link copied to clipboard

Capability required by request to be supported by HttpClientEngine with T representing type of the capability configuration.

Link copied to clipboard

Base configuration for HttpClientEngine.

Link copied to clipboard
Link copied to clipboard
expect object ProxyBuilder

A ProxyConfig factory.

actual object ProxyBuilder

ProxyConfig factory.

actual object ProxyBuilder

ProxyConfig factory.

actual object ProxyBuilder

ProxyConfig factory.

Link copied to clipboard
expect class ProxyConfig

A proxy configuration.

actual class ProxyConfig

Proxy configuration.

actual typealias ProxyConfig = Proxy

Proxy configuration.

actual class ProxyConfig

Proxy configuration.

Link copied to clipboard

A proxy type.

Properties

Link copied to clipboard

Default capabilities expected to be supported by engine.

Link copied to clipboard

Default user agent to use in ktor client.

Link copied to clipboard

A type of the configured proxy.

Type of configured proxy.

Type of configured proxy.

Functions

Link copied to clipboard

Returns current call context if exists, otherwise null.

Link copied to clipboard

Creates a new HttpClientEngineFactory based on this one with further configurations from the nested block.

Link copied to clipboard

Creates an HTTP proxy from urlString.

Link copied to clipboard
fun mergeHeaders(requestHeaders: Headers, content: OutgoingContent, block: (key: String, value: String) -> Unit)

Merge headers from content and requestHeaders according to OutgoingContent properties

Link copied to clipboard

Resolves a remote address of ProxyConfig.

Resolve remote address of ProxyConfig.

Resolve remote address of ProxyConfig.