Home
last modified time | relevance | path

Searched refs:OkHttpClient (Results 1 – 25 of 69) sorted by relevance

123

/external/okhttp/okhttp-tests/src/test/java/com/squareup/okhttp/
DOkHttpClientTest.java61 OkHttpClient client = new OkHttpClient(); in timeoutDefaults()
68 OkHttpClient client = new OkHttpClient(); in timeoutValidRange()
97 OkHttpClient client = new OkHttpClient().copyWithDefaults(); in copyWithDefaultsWhenDefaultIsAConstant()
124 OkHttpClient client = new OkHttpClient().copyWithDefaults(); in copyWithDefaultsWhenDefaultIsGlobal()
136 OkHttpClient client = new OkHttpClient().copyWithDefaults(); in copyWithDefaultsCacheIsNull()
152 OkHttpClient client = new OkHttpClient().copyWithDefaults(); in copyWithDefaultsDoesNotHonorGlobalResponseCache()
157 OkHttpClient original = new OkHttpClient(); in clonedInterceptorsListsAreIndependent()
158 OkHttpClient clone = original.clone(); in clonedInterceptorsListsAreIndependent()
170 OkHttpClient client = new OkHttpClient(); in cloneSharesStatefulInstances()
173 OkHttpClient a = client.clone().copyWithDefaults(); in cloneSharesStatefulInstances()
[all …]
DSocksProxyTest.java51 OkHttpClient client = new OkHttpClient() in proxy()
79 OkHttpClient client = new OkHttpClient() in proxySelector()
93 OkHttpClient client = new OkHttpClient() in checkRemoteDNSResolve()
/external/okhttp/okhttp/src/main/java/com/squareup/okhttp/
DOkHttpClient.java53 public class OkHttpClient implements Cloneable { class
70 @Override public void setCache(OkHttpClient client, InternalCache internalCache) {
74 @Override public InternalCache internalCache(OkHttpClient client) {
148 public OkHttpClient() { in OkHttpClient() method in OkHttpClient
153 private OkHttpClient(OkHttpClient okHttpClient) { in OkHttpClient() method in OkHttpClient
244 public OkHttpClient setProxy(Proxy proxy) { in setProxy()
262 public OkHttpClient setProxySelector(ProxySelector proxySelector) { in setProxySelector()
278 public OkHttpClient setCookieHandler(CookieHandler cookieHandler) { in setCookieHandler()
297 public OkHttpClient setCache(Cache cache) { in setCache()
312 public OkHttpClient setDns(Dns dns) { in setDns()
[all …]
/external/okhttp/samples/guide/src/main/java/com/squareup/okhttp/recipes/
DPerCallSettings.java18 import com.squareup.okhttp.OkHttpClient;
25 private final OkHttpClient client = new OkHttpClient();
33 OkHttpClient cloned = client.clone(); // Clone to make a customized OkHttp for this request. in run()
43 OkHttpClient cloned = client.clone(); // Clone to make a customized OkHttp for this request. in run()
DConfigureTimeouts.java18 import com.squareup.okhttp.OkHttpClient;
24 private final OkHttpClient client;
27 client = new OkHttpClient(); in ConfigureTimeouts()
DAccessHeaders.java18 import com.squareup.okhttp.OkHttpClient;
24 private final OkHttpClient client = new OkHttpClient();
DPostForm.java19 import com.squareup.okhttp.OkHttpClient;
26 private final OkHttpClient client = new OkHttpClient();
DPostString.java19 import com.squareup.okhttp.OkHttpClient;
29 private final OkHttpClient client = new OkHttpClient();
DSynchronousGet.java19 import com.squareup.okhttp.OkHttpClient;
25 private final OkHttpClient client = new OkHttpClient();
DCertificatePinning.java19 import com.squareup.okhttp.OkHttpClient;
26 private final OkHttpClient client;
29 client = new OkHttpClient(); in CertificatePinning()
DPostFile.java19 import com.squareup.okhttp.OkHttpClient;
30 private final OkHttpClient client = new OkHttpClient();
DParseResponseWithGson.java19 import com.squareup.okhttp.OkHttpClient;
26 private final OkHttpClient client = new OkHttpClient();
DPostMultipart.java20 import com.squareup.okhttp.OkHttpClient;
36 private final OkHttpClient client = new OkHttpClient();
DAsynchronousGet.java20 import com.squareup.okhttp.OkHttpClient;
26 private final OkHttpClient client = new OkHttpClient();
DAuthenticate.java20 import com.squareup.okhttp.OkHttpClient;
27 private final OkHttpClient client = new OkHttpClient();
DLoggingInterceptors.java19 import com.squareup.okhttp.OkHttpClient;
27 private final OkHttpClient client = new OkHttpClient();
DCheckHandshake.java20 import com.squareup.okhttp.OkHttpClient;
44 private final OkHttpClient client = new OkHttpClient();
DCancelCall.java19 import com.squareup.okhttp.OkHttpClient;
29 private final OkHttpClient client = new OkHttpClient();
DPostStreaming.java19 import com.squareup.okhttp.OkHttpClient;
30 private final OkHttpClient client = new OkHttpClient();
/external/okhttp/okhttp/src/main/java/com/squareup/okhttp/internal/
DInternal.java25 import com.squareup.okhttp.OkHttpClient;
39 public static final Logger logger = Logger.getLogger(OkHttpClient.class.getName());
43 new OkHttpClient(); in initializeInstanceForTests()
52 public abstract void setCache(OkHttpClient client, InternalCache internalCache); in setCache()
54 public abstract InternalCache internalCache(OkHttpClient client); in internalCache()
/external/okhttp/okhttp-tests/src/test/java/com/squareup/okhttp/internal/tls/
DCertificatePinnerChainValidationTest.java20 import com.squareup.okhttp.OkHttpClient;
66 OkHttpClient client = new OkHttpClient() in pinRootNotPresentInChain()
121 OkHttpClient client = new OkHttpClient() in pinIntermediatePresentInChain()
180 OkHttpClient client = new OkHttpClient() in unrelatedPinnedLeafCertificateInChain()
253 OkHttpClient client = new OkHttpClient() in unrelatedPinnedIntermediateCertificateInChain()
/external/okhttp/okhttp-urlconnection/src/main/java/com/squareup/okhttp/
DOkUrlFactory.java30 private final OkHttpClient client;
33 public OkUrlFactory(OkHttpClient client) { in OkUrlFactory()
37 public OkHttpClient client() { in client()
59 OkHttpClient copy = client.copyWithDefaults(); in open()
/external/okhttp/samples/guide/src/main/java/com/squareup/okhttp/guide/
DGetExample.java3 import com.squareup.okhttp.OkHttpClient;
9 OkHttpClient client = new OkHttpClient();
DPostExample.java4 import com.squareup.okhttp.OkHttpClient;
14 OkHttpClient client = new OkHttpClient();
/external/okhttp/samples/crawler/src/main/java/com/squareup/okhttp/sample/
DCrawler.java20 import com.squareup.okhttp.OkHttpClient;
42 private final OkHttpClient client;
48 public Crawler(OkHttpClient client) { in Crawler()
123 OkHttpClient client = new OkHttpClient(); in main()

123