interface HttpClientEngine : CoroutineScope
Base interface use to define engines for HttpClient. |
|
abstract class HttpClientEngineBase : 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. |
|
interface HttpClientEngineCapability<T>
Capability required by request to be supported by HttpClientEngine with T representing type of the capability configuration. |
|
open class HttpClientEngineConfig
Base configuration for HttpClientEngine. |
|
interface HttpClientEngineFactory<out T : HttpClientEngineConfig>
Factory of HttpClientEngine with a specific T of HttpClientEngineConfig. |
|
abstract class
Base jvm implementation for HttpClientEngine |
|
expect object ProxyBuilder
ProxyConfig factory. |
|
expect class ProxyConfig
Proxy configuration. |
|
enum class ProxyType
Types of proxy |
class ClientEngineClosedException : IllegalStateException
Exception that indicates that client engine is already closed. |
actual typealias ProxyConfig = Proxy
Proxy configuration. |
val DEFAULT_CAPABILITIES: Set<HttpTimeout.Feature>
Default capabilities expected to be supported by engine. |
|
val KTOR_DEFAULT_USER_AGENT: String
Default user agent to use in ktor client. |
suspend fun callContext(): <ERROR CLASS>
Returns current call context if exists, otherwise null. |
|
fun <T : HttpClientEngineConfig> HttpClientEngineFactory<T>.config(nested: T.() -> Unit): HttpClientEngineFactory<T>
Creates a new HttpClientEngineFactory based on this one with further configurations from the nested block. |
|
fun ProxyBuilder.http(urlString: String): ProxyConfig
Create http proxy from urlString. |
|
fun mergeHeaders(requestHeaders: Headers, content: OutgoingContent, block: (key: String, value: String) -> Unit): Unit
Merge headers from content and requestHeaders according to OutgoingContent properties |