http icon indicating copy to clipboard operation
http copied to clipboard

Question about architecture of http package

Open cyrax111 opened this issue 3 years ago • 0 comments

Hello!!

I researched the beautiful http package and encountered several questions. Maybe some users are interested with them. Could you help, please? )

We have: IOClient extends BaseClient implements Client. And we also have _HttpClient implements HttpClient

When we use a global function (for example post), it calls IOClient through Client and IOClient uses _HttpClient underhood.

Do I understand that properly? Why do we need HttpClient? We can just implement abstract functions in IOClient, or not, and why?

cyrax111 avatar Dec 22 '21 10:12 cyrax111