首页
AI Coding
NEW
沸点
课程
直播
活动
AI刷题
APP
插件
搜索历史
清空
创作者中心
写文章
发沸点
写笔记
写代码
草稿箱
创作灵感
查看更多
会员
登录
注册
王大帝
掘友等级
Android 高级开发工程师
坚持做对的事,对的就是对的
获得徽章 0
动态
文章
专栏
沸点
收藏集
关注
作品
赞
2
文章 2
沸点 0
赞
2
返回
|
搜索文章
最新
热门
OKio源码解析
先立贴,后面有时间再整理出来。开发者也可以先看一下引用的两篇文章,写的也很好。
OKHttp源码解析(6)----拦截器CallServerInterceptor
This is the last interceptor in the chain. It makes a network call to the server. 在JAVA IO中有输入流和输出流,在OKio的IO体系中,Sourc就表示输入流,Sink表示输出流。OKio的…
OKHttp源码解析(5)----拦截器ConnectInterceptor
Opens a connection to the target server and proceeds to the next interceptor. 连接拦截器的代码比较简单,主要是将网络设置组合起来,给下一个拦截器----CallServerInterceptor,用于…
OKHttp源码解析(4)----拦截器CacheInterceptor
Serves requests from the cache and writes responses to the cache. 缓存拦截器,负责读取缓存直接返回、更新缓存。当网络请求有符合要求的Cache时,直接返回Cache。如果当前Cache失效,则删除。CacheSt…
OKHttp源码解析(3)----拦截器BridgeInterceptor
Bridges from application code to network code. First it builds a network request from a user request. Then it proceeds to call the network.…
OKHttp源码解析(2)----拦截器RetryAndFollowUpInterceptor
This interceptor recovers from failures and follows redirects as necessary. It may throw an {@link IOException} if the call was canceled. 重…
OKHttp源码解析(1)----整体流程
Android系统提供了两种HTTP通信类,HttpURLConnection和HttpClient,HttpURLConnection相对来说比HttpClient难用,google自从2.3版本之后一直推荐使用HttpURLConnection,并且在6.0版本的sdk中直…
个人成就
文章被点赞
19
文章被阅读
7,186
掘力值
196
关注了
14
关注者
16
收藏集
2
关注标签
9
加入于
2017-01-17