OKhttp的简述
2019-02-25 本文已影响0人
Android_开发
1,创建OKhttpClient 对象
2,创建Request对象,通过内部类builder调用生成request对象
3,创建一个call对象,若同步execute/enqueue

失败之后重定向 拦截器
桥接拦截器
缓存拦截器
服务器和客服端连接拦截器
dispatcher.enqueue 就绪队列和运行队列

1,创建OKhttpClient 对象
2,创建Request对象,通过内部类builder调用生成request对象
3,创建一个call对象,若同步execute/enqueue
失败之后重定向 拦截器
桥接拦截器
缓存拦截器
服务器和客服端连接拦截器
dispatcher.enqueue 就绪队列和运行队列