padfoot27 padfoot27 - 1 year ago 193
Android Question

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?

Answer Source

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

Recommended from our users: Dynamic Network Monitoring from WhatsUp Gold from IPSwitch. Free Download