Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

OkHttp newBuilder()

What does the function newBuilder() exactly does in OkHttp. Does it create an entirely new client or adjusts the existing client as given here. What exactly 'adjusts' means in this case?

like image 866
padfoot27 Avatar asked Mar 04 '16 07:03

padfoot27


1 Answers

It creates a shallow copy, so you can change some configuration while leaving everything else the same.

like image 66
Jesse Wilson Avatar answered Sep 22 '22 05:09

Jesse Wilson