Your confusion

Do many students have such confusion?

1. What is the use of okhttp source code? When developing page functions, okHTTP source code is not involved, just how to call it for network data requests.

2, look at the source is a chore ah, spend a lot of time but harvest very little ah.

3. I have been developing Android for several years without reading the source code of OKHTTP, but I can still complete the work assigned by the leader.

I have to answer

In fact, after studying the okHTTP source code, you will learn the following:

Scenario 1: The OKHTTP framework has many design patterns in use, and you will learn some of them.

Scenario 2: Organizations need to encapsulate their own libraries based on their business, so okHTTP has a lot to offer.

Start

After downloading the source code for OKhttp, I found that the source code for OKhttp had been rewritten by Kotlin.

The following article explains the use of Kotlin in the OKHTTP framework and explains what Kotlin can do.

Blog.csdn.net/plokmju88/a…