Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- public class Main {
- String run(String url) throws IOException {
- //...
- // create a OkHttpClient builder instance and configure it to use the proxy
- OkHttpClient client = new OkHttpClient.Builder()
- .proxy(proxy)
- .build();
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement