Paul Griffith
02/17/2021, 6:51 PMXClient
which might be backed by a CIOEngine
...but also be able to use the same class but with a MockEngine
, which requires being able to add handlersengineCustomization: EngineType.() -> Unit = {},
which then makes the client initialization
protected val client: HttpClient by lazy { HttpClient(clientSupplier.create(engineCustomization), clientConfiguration)
}
makes things a lot nicer to look atcreate
extension function, so you don't need to provide a configuration lambda at all