OkHttp
Version 4.4.0
OkHttpClient 创建
请求创建
异步请求
// RealCall#enqueue
override fun enqueue(responseCallback: Callback) {
synchronized(this) {
check(!executed) { "Already Executed" }
executed = true
}
callStart()
client.dispatcher.enqueue(AsyncCall(responseCallback))
}AsyncCall#run
RealCall#getResponseWithInterceptorChain
RealInterceptorChain#proceed
同步请求
Dispatcher
线程池创建
请求发送
BridgeInterceptor
CallServerInterceptor
RealInterceptorChain#initExchange
ExchangeFinder#find
RealConnection#newCodec
缓存处理
相关链接
最后更新于