Advertisement
dereksir

Untitled

Apr 29th, 2024
606
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Java 0.28 KB | None | 0 0
  1. public class Main {
  2.     String run(String url) throws IOException {
  3.         //...
  4.  
  5.         // create a OkHttpClient builder instance and configure it to use the proxy
  6.         OkHttpClient client = new OkHttpClient.Builder()
  7.             .proxy(proxy)
  8.             .build();
  9.     }
  10. }
  11.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement