What are the differences between `HttpClient(Andro...
# ktor
d
What are the differences between
HttpClient(Android)
and
HttpClient(OkHttp)
with regards to
ktor-client
?
b
Mainly minimal supported android version
d
There’s no difference in the underlying implementation? Why wouldn’t we then always use the one that supports lower version?
b
d
Yes, I went through that. That doesn’t really answer my question. They only say there’s
CIO
,
Android
and
OkHttp
engines that can be used on Android platform. I’m currently using
Android
engine and I want to switch to
OkHttp
for specific reasons. Are there some downsides of doing that? Performance impact, behaviour changes, etc.?
b
Behaviour should not change apart from bumping into unsupported android/jvm versions or http features (as listed in the linked tables)
I don't think there are any performance comparisons between the engines
CIO is the only http engine implemented from scratch. The other two just wrap existing industry standard http libraries
d
Thanks for the information. OkHttp engine wraps OkHttp, do you maybe know which library Android engine wraps?
b
Native android http client from sdk
d
Thank you
b
You're welcome
a
Also, you can find the discussion about difference between those two engines here.
👍 1