EngineEntry

class EngineEntry(val factory: EngineFactory, val priority: Double = 1.0) : HttpClientEngineContainer(source)

An entry in the engines registry that pairs an engine factory with its priority.

Report a problem

Constructors

Link copied to clipboard
constructor(factory: EngineFactory, priority: Double = 1.0)

Properties

Link copied to clipboard
open override val factory: EngineFactory

the engine factory

Link copied to clipboard
open override val priority: Double

determines selection order when io.ktor.client.HttpClient is called with no explicit engine. Higher values are preferred. When multiple factories share the same highest priority an exception is thrown; assign distinct priorities to avoid ambiguity.