Of all the engines for JVM/Android for HTTP Client...
# ktor
o
Of all the engines for JVM/Android for HTTP Client, which one is recommended?: Apache, CIO, Jetty, OkHttp, HttpUrlConnection?
e
Hi @Orhan Tozan, for client or server?
o
For client*
e
What version of android are you targeting?
o
min21+, target 29
e
Android , OkHttp and CIO works fine. First 2 has several restrictions about post-get with body. In other cases you will not see the difference.
g
Android engine is fine
👍 2
o
My networking module is targeting jvm(), which will be used by the main android app, is it fine if I use CIO then instead?
Reading that CIO is ktor's implementation, will this be the recommended engine in the future?
e
Yep. CIO engine has the same implementation on all platforms
d
just wondering, is CIO engine behaving similar to Spring WebClient in that it doesn’t block the threads or is it more of a Retrofit model where it is backed by some blocking threadpool?
r
Wait is CIO multiplatform? I thought it was just JVM. Or is that planned to change?
d
Planned to change.
e
@Dariusz Kuc, CIO is non-blocking(except domain name resolution)
👍 1
d
awesome