HomeSort by relevance Sort by last modified time
    Searched refs:OkHttpClient (Results 1 - 25 of 31) sorted by null

1 2

  /external/okhttp/android/main/java/com/squareup/okhttp/
HttpsHandler.java 38 protected OkHttpClient newOkHttpClient(Proxy proxy) {
39 OkHttpClient okHttpClient = createHttpsOkHttpClient(proxy);
40 okHttpClient.setConnectionPool(configAwareConnectionPool.get());
41 return okHttpClient;
45 * Creates an OkHttpClient suitable for creating {@link HttpsURLConnection} instances on
48 public static OkHttpClient createHttpsOkHttpClient(Proxy proxy) {
49 // The HTTPS OkHttpClient is an HTTP OkHttpClient with extra configuration.
50 OkHttpClient client = HttpHandler.createHttpOkHttpClient(proxy)
    [all...]
HttpHandler.java 47 protected OkHttpClient newOkHttpClient(Proxy proxy) {
48 OkHttpClient okHttpClient = createHttpOkHttpClient(proxy);
49 okHttpClient.setConnectionPool(configAwareConnectionPool.get());
50 return okHttpClient;
54 * Creates an OkHttpClient suitable for creating {@link java.net.HttpURLConnection} instances on
57 public static OkHttpClient createHttpOkHttpClient(Proxy proxy) {
58 OkHttpClient client = new OkHttpClient();
  /external/okhttp/okhttp/src/main/java/com/squareup/okhttp/
OkHttpClient.java 46 * OkHttpClient for all of their HTTP requests - benefiting from a shared
49 * Instances of OkHttpClient are intended to be fully configured before they're
52 * {@link #clone()} to make a shallow copy of the OkHttpClient that can be
55 public final class OkHttpClient implements URLStreamHandlerFactory, Cloneable {
74 public OkHttpClient() {
133 public OkHttpClient setProxy(Proxy proxy) {
151 public OkHttpClient setProxySelector(ProxySelector proxySelector) {
167 public OkHttpClient setCookieHandler(CookieHandler cookieHandler) {
179 public OkHttpClient setResponseCache(ResponseCache responseCache) {
189 public OkHttpClient setOkResponseCache(OkResponseCache responseCache)
    [all...]
Dispatcher.java 102 synchronized void enqueue(OkHttpClient client, Request request, Response.Receiver receiver) {
Job.java 43 private final OkHttpClient client;
53 public Job(Dispatcher dispatcher, OkHttpClient client, Request request,
  /external/okhttp/samples/guide/src/main/java/com/squareup/okhttp/guide/
GetExample.java 3 import com.squareup.okhttp.OkHttpClient;
11 OkHttpClient client = new OkHttpClient();
PostExample.java 3 import com.squareup.okhttp.OkHttpClient;
13 OkHttpClient client = new OkHttpClient();
  /external/okhttp/samples/simple-client/src/main/java/com/squareup/okhttp/sample/
OkHttpContributors.java 5 import com.squareup.okhttp.OkHttpClient;
27 OkHttpClient client = new OkHttpClient();
  /external/okhttp/benchmarks/src/main/java/com/squareup/okhttp/benchmarks/
OkHttp.java 18 import com.squareup.okhttp.OkHttpClient;
32 private OkHttpClient client;
36 client = new OkHttpClient();
OkHttpAsync.java 20 import com.squareup.okhttp.OkHttpClient;
40 private OkHttpClient client;
49 client = new OkHttpClient();
  /external/okhttp/okhttp-tests/src/test/java/com/squareup/okhttp/internal/http/
ThreadInterruptTest.java 18 import com.squareup.okhttp.OkHttpClient;
33 private final OkHttpClient client = new OkHttpClient();
ExternalHttp2Example.java 19 import com.squareup.okhttp.OkHttpClient;
34 HttpsURLConnection connection = (HttpsURLConnection) new OkHttpClient()
ExternalSpdyExample.java 19 import com.squareup.okhttp.OkHttpClient;
34 HttpsURLConnection connection = (HttpsURLConnection) new OkHttpClient()
URLEncodingTest.java 19 import com.squareup.okhttp.OkHttpClient;
126 OkHttpClient client = new OkHttpClient();
ResponseCacheAdapterTest.java 18 import com.squareup.okhttp.OkHttpClient;
73 private OkHttpClient client;
79 client = new OkHttpClient();
CookiesTest.java 19 import com.squareup.okhttp.OkHttpClient;
50 private OkHttpClient client;
54 client = new OkHttpClient();
JavaApiConverterTest.java 22 import com.squareup.okhttp.OkHttpClient;
113 private OkHttpClient client;
119 client = new OkHttpClient();
711 protected final OkHttpClient client;
713 private OkHttpURLConnectionFactory(OkHttpClient client) {
  /external/okhttp/okhttp/src/main/java/com/squareup/okhttp/internal/http/
HttpsURLConnectionImpl.java 20 import com.squareup.okhttp.OkHttpClient;
28 public HttpsURLConnectionImpl(URL url, OkHttpClient client) {
HttpURLConnectionImpl.java 23 import com.squareup.okhttp.OkHttpClient;
75 final OkHttpClient client;
97 public HttpURLConnectionImpl(URL url, OkHttpClient client) {
301 OkHttpClient engineClient = client;
  /external/okhttp/samples/crawler/src/main/java/com/squareup/okhttp/sample/
Crawler.java 20 import com.squareup.okhttp.OkHttpClient;
45 private final OkHttpClient client;
49 public Crawler(OkHttpClient client) {
133 OkHttpClient client = new OkHttpClient();
  /external/okhttp/okcurl/src/main/java/com/squareup/okhttp/curl/
Main.java 24 import com.squareup.okhttp.OkHttpClient;
118 private OkHttpClient client;
160 private OkHttpClient createClient() {
161 OkHttpClient client = new OkHttpClient();
  /external/okhttp/okhttp-apache/src/main/java/com/squareup/okhttp/apache/
OkApacheClient.java 4 import com.squareup.okhttp.OkHttpClient;
34 * Implements Apache's {@link HttpClient} API using {@link OkHttpClient}.
41 protected final OkHttpClient client;
79 this(new OkHttpClient());
82 public OkApacheClient(OkHttpClient client) {
  /external/okhttp/okhttp-tests/src/test/java/com/squareup/okhttp/
DispatcherTest.java 19 OkHttpClient client = new OkHttpClient().setDispatcher(dispatcher);
SyncApiTest.java 40 private OkHttpClient client = new OkHttpClient();
  /frameworks/base/core/java/android/net/
Network.java 42 import com.android.okhttp.OkHttpClient;
247 OkHttpClient client;
256 // OkHttpClient only supports HTTP and HTTPS and returns a null URLStreamHandler if

Completed in 657 milliseconds

1 2