This series of articles will try to use the form of a flow chart to visually demonstrate the working mechanism of OKHttp. The flow chart is easy to understand and easy to review in the future. Welcome to collect the flow chart. Figure above: General flow chart:
Notice the difference between synchronous and asynchronous, and the build, look and feel involved in the process, as well as the classic OKHttpChain of Responsibility modelNext is RetryAndFollowUpInterceptor flow chart of the interceptor:
Here the process is not difficult, the key is involved in some OF the HTTP protocol related content, the key point is involved in the flow chart, the big logical framework is through an endless loop to achieve multiple attempts and redirection function. If there are any questions you can comment on, the next post will cover the next important interceptor:CacheInterceptor