https://kotlinlang.org logo
#ktor
Title
# ktor
s

Stylianos Gakis

10/23/2023, 2:06 PM
If I create a ktor httpClient with an OkHttp engine, like
httpClientEngine = OkHttpEngine(OkHttpConfig().apply { preconfigured = okHttpClientBuilder.build() }),
, is it safe to assume then that all interceptors, headers and whatever will be forwarded exactly as they would when using my normal OkHttp client? If of course I am using the same
okHttpClientBuilder: : OkHttpClient.Builder
for both of them.
a

Aleksei Tirman [JB]

10/24/2023, 6:56 AM
I think so but it requires testing anyway.
👍 1
2 Views