octylFractal
09/03/2018, 7:11 AMHttpClient#config
? I expected that it would be equivalent to adding the given block to the end of the original config
block, but it instead it overwrites itDeactivated User
09/03/2018, 7:12 AMHttpClientConfig#engine
?octylFractal
09/03/2018, 7:13 AMinstall
to add some features/interceptors, and I wanted to create another copy with those same features + additional custom interceptorsDeactivated User
09/03/2018, 7:13 AMoctylFractal
09/03/2018, 7:14 AMDeactivated User
09/03/2018, 7:15 AMfun config(block: HttpClientConfig<*>.() -> Unit): HttpClient = HttpClient(
engine, useDefaultTransformers, HttpClientConfig<HttpClientEngineConfig>().apply(block)
)
fun config(block: HttpClientConfig<*>.() -> Unit): HttpClient = HttpClient(
engine, useDefaultTransformers, config.clone().apply(block)
)
octylFractal
09/03/2018, 7:16 AMDeactivated User
09/03/2018, 7:17 AMoctylFractal
09/03/2018, 7:17 AM