Hi, silly question I understand that ktor's httpcl...
# ktor
a
Hi, silly question I understand that ktor's httpclient uses the IO dispatcher by default. But I'm seeing that the defaultRequest {} block from the HttpClientConfig is running on the parent context. Is there a way of forcing the whole request generation to also run on the default IO dispatcher?
I could just wrap all httpclient calls with withContext(Dispatchers.IO) but I want to avoid that if possible
a
Can you point to the place where the parent context is used? Or can you describe the way you checked that?
a
I used the debugger with a breakpoint to a potentially slow operation I have inside the
defaultRequest {}
https://ktor.io/docs/client-default-request.html#configure