- 博客(3)
- 资源 (1)
- 收藏
- 关注
原创 OkHttp3初探:拦截器源码分析
目录 一、OkHttp3的拦截器 二、Interceptor接口 三、RetryAndFollowUpInterceptor 三、BridgeInterceptor 四、CacheInterceptor 五、ConnectInterceptor 六、CallServerInterceptor 七、addInterceptor与addNetworkInterceptor的区别 八、...
2019-10-07 16:44:46 243
原创 OkHttp3初探:主流程源码分析
目录 一、OkHttp3请求流程图 二、主要流程 2.1 创建一个Http客户端: 2.2 组装Request对象 2.2.1 Request 2.2.2 RequestBody 2.3 请求网络核心代码(同步) 2.4 请求网络核心代码(异步) 2.4.1 Call接口 2.4.2 newCall() 2.4.3 RealCall.newRealCall() 2.4.4 ...
2019-09-15 14:59:22 243
原创 OkHttp3初探:基本使用方法
目录 一、简介 二、基本用法 1、添加依赖 2、使用 2.1 创建客户端对象 2.2 创建Request对象 2.3 生成网络请求对象 2.4 发起网络请求 2.5 示例 三、补充知识 3.1 RequestBody 3.2 Response 四、主要参考 一、简介 OkHttp3是由square公司负责日常维护的开源项目,GitHub地址:https://githu...
2019-08-20 16:08:13 229
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人