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.java161 client.newCall(request).enqueue(callback); in invalidPort()
327 Response response = client.newCall(request).execute(); in postBodyRetransmittedAfterAuthorizationFail()
365 client.newCall(new Request.Builder().url(server.getUrl("/0")).build()).execute(); in doesNotAttemptAuthorization21Times()
502 Call call = client.newCall(request); in illegalToExecuteTwice()
532 Call call = client.newCall(request); in illegalToExecuteTwice_Async()
561 client.newCall(request).enqueue(callback); in get_Async()
578 client.newCall(request).enqueue(new Callback() { in exceptionThrownByOnResponseIsRedactedAndLogged()
616 client.newCall(new Request.Builder().url(server.getUrl("/a")).build()).enqueue(callback); in connectionPooling_Async()
619 client.newCall(new Request.Builder().url(server.getUrl("/b")).build()).enqueue(callback); in connectionPooling_Async()
622 client.newCall(new Request.Builder().url(server.getUrl("/c")).build()).enqueue(callback); in connectionPooling_Async()
[all …]
DInterceptorTest.java75 Response response = client.newCall(request).execute(); in applicationInterceptorsCanShortCircuitResponses()
100 client.newCall(request).execute(); in networkInterceptorsCannotShortCircuitResponses()
125 client.newCall(request).execute(); in networkInterceptorsCannotCallProceedMultipleTimes()
153 client.newCall(request).execute(); in networkInterceptorsCannotChangeServerAddress()
175 client.newCall(request).execute(); in networkInterceptorsHaveConnectionAccess()
209 Response response = client.newCall(request).execute(); in networkInterceptorsObserveNetworkHeaders()
241 client.newCall(request).execute(); in rewriteRequestToServer()
277 Response response = client.newCall(request).execute(); in rewriteResponseFromServer()
321 Response response = client.newCall(request).execute(); in multipleInterceptors()
353 client.newCall(request).enqueue(callback); in asyncInterceptors()
[all …]
DCacheTest.java181 Response response = client.newCall(request).execute(); in assertCached()
223 Response response1 = client.newCall(request).execute(); in testResponseCaching()
234 Response response2 = client.newCall(request).execute(); in testResponseCaching()
260 Response response1 = client.newCall(request).execute(); in secureResponseCaching()
271 Response response2 = client.newCall(request).execute(); // Cached! in secureResponseCaching()
299 Response response1 = client.newCall(request).execute(); in responseCachingAndRedirects()
302 Response response2 = client.newCall(request).execute(); // Cached! in responseCachingAndRedirects()
321 Response response1 = client.newCall(request1).execute(); in redirectToCachedResult()
328 Response response2 = client.newCall(request2).execute(); in redirectToCachedResult()
336 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()
DParseResponseWithGson.java33 Response response = client.newCall(request).execute(); in run()
DPostMultipart.java53 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