Lilly
04/12/2022, 11:30 PMHttpURLConnection
as http client, every 3rd party has to be based on HttpURLConnection
and so okhttp too or not? But since Android 4.4 HttpURLConnection
uses okhttp as http engine. This confuses me a bit. Does that mean okhttp is not based on any other API and is written from scratch? Can someone enlighten me please?jw
04/12/2022, 11:36 PMjw
04/12/2022, 11:37 PMjw
04/12/2022, 11:40 PMLilly
04/12/2022, 11:40 PMOkHttp is built around SocketSo java.net.Socket is lower-level than HttpURLConnection, right?
ephemient
04/12/2022, 11:40 PMjw
04/12/2022, 11:41 PMjw
04/12/2022, 11:43 PMephemient
04/12/2022, 11:44 PMephemient
04/12/2022, 11:45 PMLilly
04/12/2022, 11:50 PMHttpUrlConnection is also built around SocketI found a tweet from 2014 where you (Jake) state "OkHttp became the engine that powers HttpUrlConnection as of Android 4.4". So I would expect HttpUrlConnection is built on okhttp or did you mean that because when HttpUrlConnection is built on okhttp it's in turn built on Socket (HttpUrlConnection -> okhttp -> Socket). Please correct me if iam wrong.
jw
04/12/2022, 11:54 PMephemient
04/12/2022, 11:55 PMjw
04/12/2022, 11:56 PMLilly
04/13/2022, 12:02 AMjw
04/13/2022, 12:02 AMjw
04/13/2022, 12:03 AMephemient
04/13/2022, 12:03 AMLilly
04/13/2022, 12:07 AMLilly
04/13/2022, 12:09 AMyschimke
04/13/2022, 6:18 AMLilly
04/13/2022, 8:26 AM