Home
last modified time | relevance | path

Searched refs:newCall (Results 1 – 25 of 36) sorted by relevance

12

/external/okhttp/okhttp-tests/src/test/java/com/squareup/okhttp/
DDispatcherTest.java44 client.newCall(newRequest("http://a/1")).enqueue(callback); in enqueuedJobsRunImmediately()
50 client.newCall(newRequest("http://a/1")).enqueue(callback); in maxRequestsEnforced()
51 client.newCall(newRequest("http://a/2")).enqueue(callback); in maxRequestsEnforced()
52 client.newCall(newRequest("http://b/1")).enqueue(callback); in maxRequestsEnforced()
53 client.newCall(newRequest("http://b/2")).enqueue(callback); in maxRequestsEnforced()
59 client.newCall(newRequest("http://a/1")).enqueue(callback); in maxPerHostEnforced()
60 client.newCall(newRequest("http://a/2")).enqueue(callback); in maxPerHostEnforced()
61 client.newCall(newRequest("http://a/3")).enqueue(callback); in maxPerHostEnforced()
67 client.newCall(newRequest("http://a/1")).enqueue(callback); in increasingMaxRequestsPromotesJobsImmediately()
68 client.newCall(newRequest("http://b/1")).enqueue(callback); in increasingMaxRequestsPromotesJobsImmediately()
[all …]
DCallTest.java324 Response response = client.newCall(request).execute(); in postBodyRetransmittedAfterAuthorizationFail()
362 client.newCall(new Request.Builder().url(server.url("/0")).build()).execute(); in doesNotAttemptAuthorization21Times()
499 Call call = client.newCall(request); in illegalToExecuteTwice()
529 Call call = client.newCall(request); in illegalToExecuteTwice_Async()
558 client.newCall(request).enqueue(callback); in get_Async()
575 client.newCall(request).enqueue(new Callback() { in exceptionThrownByOnResponseIsRedactedAndLogged()
613 client.newCall(new Request.Builder().url(server.url("/a")).build()).enqueue(callback); in connectionPooling_Async()
616 client.newCall(new Request.Builder().url(server.url("/b")).build()).enqueue(callback); in connectionPooling_Async()
619 client.newCall(new Request.Builder().url(server.url("/c")).build()).enqueue(callback); in connectionPooling_Async()
632 client.newCall(request).enqueue(new Callback() { in connectionReuseWhenResponseBodyConsumed_Async()
[all …]
DInterceptorTest.java74 Response response = client.newCall(request).execute(); in applicationInterceptorsCanShortCircuitResponses()
99 client.newCall(request).execute(); in networkInterceptorsCannotShortCircuitResponses()
124 client.newCall(request).execute(); in networkInterceptorsCannotCallProceedMultipleTimes()
152 client.newCall(request).execute(); in networkInterceptorsCannotChangeServerAddress()
174 client.newCall(request).execute(); in networkInterceptorsHaveConnectionAccess()
208 Response response = client.newCall(request).execute(); in networkInterceptorsObserveNetworkHeaders()
240 client.newCall(request).execute(); in rewriteRequestToServer()
276 Response response = client.newCall(request).execute(); in rewriteResponseFromServer()
320 Response response = client.newCall(request).execute(); in multipleInterceptors()
352 client.newCall(request).enqueue(callback); in asyncInterceptors()
[all …]
DCacheTest.java178 Response response = client.newCall(request).execute(); in assertCached()
220 Response response1 = client.newCall(request).execute(); in testResponseCaching()
231 Response response2 = client.newCall(request).execute(); in testResponseCaching()
257 Response response1 = client.newCall(request).execute(); in secureResponseCaching()
268 Response response2 = client.newCall(request).execute(); // Cached! in secureResponseCaching()
296 Response response1 = client.newCall(request).execute(); in responseCachingAndRedirects()
299 Response response2 = client.newCall(request).execute(); // Cached! in responseCachingAndRedirects()
318 Response response1 = client.newCall(request1).execute(); in redirectToCachedResult()
325 Response response2 = client.newCall(request2).execute(); in redirectToCachedResult()
333 Response response3 = client.newCall(request3).execute(); in redirectToCachedResult()
[all …]
DSocksProxyTest.java55 Response response1 = client.newCall(request1).execute(); in proxy()
59 Response response2 = client.newCall(request2).execute(); in proxy()
83 Response response = client.newCall(request).execute(); in proxySelector()
/external/okhttp/samples/guide/src/main/java/com/squareup/okhttp/recipes/
DPerCallSettings.java36 Response response = cloned.newCall(request).execute(); in run()
46 Response response = cloned.newCall(request).execute(); in run()
DCacheResponse.java41 Response response1 = client.newCall(request).execute(); in run()
49 Response response2 = client.newCall(request).execute(); in run()
DConfigureTimeouts.java38 Response response = client.newCall(request).execute(); in run()
DAccessHeaders.java34 Response response = client.newCall(request).execute(); in run()
DPostForm.java37 Response response = client.newCall(request).execute(); in run()
DPostString.java45 Response response = client.newCall(request).execute(); in run()
DSynchronousGet.java32 Response response = client.newCall(request).execute(); in run()
DCertificatePinning.java44 Response response = client.newCall(request).execute(); in run()
DPostFile.java40 Response response = client.newCall(request).execute(); in run()
DAsynchronousGet.java33 client.newCall(request).enqueue(new Callback() { in run()
DPostMultipart.java53 Response response = client.newCall(request).execute(); in run()
DParseResponseWithGson.java33 Response response = client.newCall(request).execute(); in run()
DAuthenticate.java49 Response response = client.newCall(request).execute(); in run()
DCheckHandshake.java55 Response response = client.newCall(request).execute(); in run()
DLoggingInterceptors.java51 Response response = client.newCall(request).execute(); in run()
DCancelCall.java37 final Call call = client.newCall(request); in run()
DPostStreaming.java60 Response response = client.newCall(request).execute(); in run()
/external/okhttp/samples/guide/src/main/java/com/squareup/okhttp/guide/
DGetExample.java16 Response response = client.newCall(request).execute(); in run()
DPostExample.java22 Response response = client.newCall(request).execute(); in post()
/external/okhttp/samples/simple-client/src/main/java/com/squareup/okhttp/sample/
DOkHttpContributors.java34 Response response = client.newCall(request).execute(); in main()

12