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 base implementation of HttpClientEngine, providing lifecycle management for the dispatcher and coroutineContext, as well as proper handling of call contexts.

Link copied to clipboard

Represents a capability that an HttpClientEngine can support, with T representing the type of configuration or metadata associated with the capability.

Link copied to clipboard

Base configuration for HttpClientEngine.

Link copied to clipboard

A factory for creating instances of HttpClientEngine with a specific configuration type T.

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 a 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.