HttpClientEngine

interface HttpClientEngine : CoroutineScope, Closeable

Base interface use to define engines for HttpClient.

Functions

Link copied to clipboard
expect abstract 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
abstract 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.

Inheritors

Link copied to clipboard
Link copied to clipboard