Package io.ktor.client.engine
Types
interface HttpClientEngine : CoroutineScope, Closeable 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 |
Exceptions
class ClientEngineClosedException : IllegalStateException Exception that indicates that client engine is already closed. |
Type Aliases
actual typealias ProxyConfig = Proxy Proxy configuration. |
Extensions for External Classes
Properties
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. |
Functions
suspend fun callContext(): <ERROR CLASS> Returns current call context if exists, otherwise null. |
|
fun <T : HttpClientEngineConfig> HttpClientEngineFactory<T>.config( 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( Merge headers from content and requestHeaders according to OutgoingContent properties |