I keep hearing about Ktor, does it makes sense to ...
# compose
l
I keep hearing about Ktor, does it makes sense to migrate from OkHttp with our Jetpack Compose app?
j
No. Ktor client will just use OkHttp so you'll be adding a needless abstraction.
l
Got it, makes sense. Thanks!
c
Yeah, unless you're moving to kmp/cmp then sticking with okhttp makes the most sense. like jake said, ktor needs to use "engines" for each different platform and the engine for android/java is okhttp. i know theres a generic "cio" engine. I wonder if in that case ktor would not use okhttp (but i haven't tried)
👍 2
t
Yes for Compose Multiplatform you cannot use OkHttp directly. But you can use it for JVM targets and all other have to use different engines. Ktor client even have an engine for native implementation but also for web and iOs i think.