Retrofit 请求流程图(Rxjava + Gson)
2021-07-24 00:53:02 0 举报
史上最详细的Retrofit请求流程时序图,看完还不会不懂Retrofit原理你顺着网线过来打死我!
作者其他创作
大纲/内容
loadServiceMethod
OkHttpCall
return RxJava3CallAdapter
ApiService
new CallCallback
convert
Retorfit持有者
create
enqueue(callback)
newProxyInstance
GsonConverterFactory
onResponse
invoke
callApi
responseBodyConverter
Observer
return CallEnqueueObservable
enqueue
adapt
RxJava3CallAdapter
subscribe
createResponseConverter
return Apiservice
CallAdapted
callAdapter
get
okhttp3.Call
new OkHttpCall
RxJava3CallAdapterFactory
ServiceMethod
onComplete
parseAnnotations
return CallAdapted
createCallAdapter
Retorfit
CallEnqueueObservable
CallCallback
subscribeActual
onNext(response)
parseResponse
HttpServiceMethod
onSubscribe(CallCallback)
return GsonResponseBodyConverter
Proxy
0 条评论
回复 删除
下一页