Home | History | Annotate | Download | only in okhttp

Lines Matching refs:protocol

58     String protocol = url.getProtocol();
62 if (protocol.equals("http")) return new HttpURLConnectionImpl(url, copy, urlFilter);
63 if (protocol.equals("https")) return new HttpsURLConnectionImpl(url, copy, urlFilter);
64 throw new IllegalArgumentException("Unexpected protocol: " + protocol);
77 @Override public URLStreamHandler createURLStreamHandler(final String protocol) {
78 if (!protocol.equals("http") && !protocol.equals("https")) return null;
90 if (protocol.equals("http")) return 80;
91 if (protocol.equals("https")) return 443;