@Override protected URLConnection openConnection(URL url, Proxy proxy) { return open(url, proxy); }
@Override protected URLConnection openConnection(URL url) { return open(url); }
public HttpURLConnection open(URL url) { return open(url, proxy); }
@Override protected URLConnection openConnection(URL url, Proxy proxy) { return open(url, proxy); }
@Override protected URLConnection openConnection(URL url) { return open(url); }
public HttpURLConnection open(URL url) { return open(url, proxy); }
@Override protected URLConnection openConnection(URL url, Proxy proxy) throws IOException { if (url == null || proxy == null) { throw new IllegalArgumentException("url == null || proxy == null"); } return newOkHttpClient(proxy).open(url); }
@Override protected URLConnection openConnection(URL url, Proxy proxy) throws IOException { if (url == null || proxy == null) { throw new IllegalArgumentException("url == null || proxy == null"); } return newOkHttpClient(proxy).open(url); }
@Override protected URLConnection openConnection(URL url) throws IOException { return newOkHttpClient(null /* proxy */).open(url); }
@Override protected URLConnection openConnection(URL url) throws IOException { return newOkHttpClient(null /* proxy */).open(url); }
/** * Schedules {@code request} to be executed. */ public void enqueue(Request request, Response.Receiver responseReceiver) { // Create the HttpURLConnection immediately so the enqueued job gets the current settings of // this client. Otherwise changes to this client (socket factory, redirect policy, etc.) may // incorrectly be reflected in the request when it is dispatched later. dispatcher.enqueue(open(request.url()), request, responseReceiver); }
/** * Schedules {@code request} to be executed. */ public void enqueue(Request request, Response.Receiver responseReceiver) { // Create the HttpURLConnection immediately so the enqueued job gets the current settings of // this client. Otherwise changes to this client (socket factory, redirect policy, etc.) may // incorrectly be reflected in the request when it is dispatched later. dispatcher.enqueue(open(request.url()), request, responseReceiver); }