HttpClientEngineBase

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.

Constructors

Link copied to clipboard
fun HttpClientEngineBase(engineName: String)

Functions

Link copied to clipboard
open override fun close()
Link copied to clipboard
abstract suspend fun execute(data: HttpRequestData): HttpResponseData

Creates a new HttpClientCall specific for this engine, using a request data.

Link copied to clipboard
open fun install(client: HttpClient)

Install engine into HttpClient.

Properties

Link copied to clipboard
abstract val config: HttpClientEngineConfig

Engine configuration

Link copied to clipboard
open override val coroutineContext: CoroutineContext
Link copied to clipboard
abstract val dispatcher: CoroutineDispatcher

CoroutineDispatcher specified for io operations.

Link copied to clipboard
open val supportedCapabilities: Set<HttpClientEngineCapability<*>>

Set of supported engine extensions.