HttpClientEngineBase

Base class that SDK HttpClientEngines SHOULD inherit from rather than implementing directly. This class's CoroutineContext will include SupervisorJob because the failure of individual requests should not affect other requests or the overall engine.

Constructors

Link copied to clipboard
constructor(engineName: String)

Properties

Link copied to clipboard
open val coroutineContext: <Error class: unknown class>

Inherited properties

Link copied to clipboard

The configuration used to initialize this engine

Functions

Link copied to clipboard
fun close()

Inherited functions

Link copied to clipboard

Wraps an HttpClientEngine for internal runtime management by the SDK if possible.

Link copied to clipboard
abstract suspend fun roundTrip(context: <Error class: unknown class>, request: <Error class: unknown class>): <Error class: unknown class>

Execute a single HTTP request and return the response. Consumers MUST call HttpCall.complete() when finished processing the response