![](https://img-blog.csdnimg.cn/20201014180756927.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
okhttp分析
文章平均质量分 83
record_my_world
用文字记录自己迷茫而又充满梦想的生活....
展开
-
okhttp 网络分析(一)
简介:这篇主要分析网络的调用流程1,简单的okhttp的调用代码//初始化OkHttpClientOkHttpClient.Builder builder = new OkHttpClient.Builder() .connectTimeout(15, TimeUnit.SECONDS) .writeTimeout(5,Ti...原创 2018-11-08 10:47:27 · 190 阅读 · 0 评论 -
okhttp分析二----拦截器的分析
前置语:接okhttp分析的上篇文章,来分析拦截器是怎么循环调用来导致请求网络的1,网络调用走的是RealCall 中的getResponseWithInterceptorChain()方法,具体的实现是Response getResponseWithInterceptorChain() throws IOException { // Build a full stack of i...原创 2018-11-08 15:32:56 · 168 阅读 · 0 评论