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)

Installs the engine to HttpClient.

Properties

Link copied to clipboard

Provides access to an engine's configuration.

Link copied to clipboard
Link copied to clipboard
abstract val dispatcher: CoroutineDispatcher

Specifies CoroutineDispatcher for I/O operations.

Link copied to clipboard

Set of supported engine extensions.

Extensions

Link copied to clipboard