Issue
I updated my okhttp to okhttp3 because of vulnerability issue, but the class OkHttpClient doesn't have setProxy now. What should I do? Should I rewrite the code with new one?
Thanks.
Solution
It seems that in okhttp3, it's using proxy() for the OkHttpClient.Builder. proxy() has the same documentation as setProxy() in older okhttp.
Here are some examples using proxy().
Answered By - Haoliang
Answer Checked By - Katrina (JavaFixing Volunteer)