ursus
06/26/2024, 4:16 PMursus
06/26/2024, 4:16 PMWhen creating copies of ktor client
val ktorClient2 = ktorClient.config { ... }
such new instance doesn't have developmentMode boolean copied if the original instance has it set.
It's due to
public operator fun plusAssign(other: HttpClientConfig<out T>) {
followRedirects = other.followRedirects
useDefaultTransformers = other.useDefaultTransformers
expectSuccess = other.expectSuccess
plugins += other.plugins
pluginConfigurations += other.pluginConfigurations
customInterceptors += other.customInterceptors
}
it misses developmentMode = other.developmentMode
// ktor = "2.3.12"
Aleksei Tirman [JB]
06/26/2024, 6:59 PMursus
06/26/2024, 7:04 PMAleksei Tirman [JB]
06/26/2024, 7:20 PMe5l
06/26/2024, 8:07 PMAleksei Tirman [JB]
06/27/2024, 7:33 AM