/external/okhttp/samples/guide/src/main/java/com/squareup/okhttp/recipes/ |
D | CacheResponse.java | 41 Response response1 = client.newCall(request).execute(); in run() local 42 if (!response1.isSuccessful()) throw new IOException("Unexpected code " + response1); in run() 44 String response1Body = response1.body().string(); in run() 45 System.out.println("Response 1 response: " + response1); in run() 46 System.out.println("Response 1 cache response: " + response1.cacheResponse()); in run() 47 System.out.println("Response 1 network response: " + response1.networkResponse()); in run()
|
/external/okhttp/okhttp-tests/src/test/java/com/squareup/okhttp/ |
D | CacheTest.java | 220 Response response1 = client.newCall(request).execute(); in testResponseCaching() local 222 BufferedSource in1 = response1.body().source(); in testResponseCaching() 257 Response response1 = client.newCall(request).execute(); in secureResponseCaching() local 258 BufferedSource in = response1.body().source(); in secureResponseCaching() 262 String suite = response1.handshake().cipherSuite(); in secureResponseCaching() 263 List<Certificate> localCerts = response1.handshake().localCertificates(); in secureResponseCaching() 264 List<Certificate> serverCerts = response1.handshake().peerCertificates(); in secureResponseCaching() 265 Principal peerPrincipal = response1.handshake().peerPrincipal(); in secureResponseCaching() 266 Principal localPrincipal = response1.handshake().localPrincipal(); in secureResponseCaching() 296 Response response1 = client.newCall(request).execute(); in responseCachingAndRedirects() local [all …]
|
D | SocksProxyTest.java | 55 Response response1 = client.newCall(request1).execute(); in proxy() local 56 assertEquals("abc", response1.body().string()); in proxy() 102 Response response1 = client.newCall(request).execute(); in checkRemoteDNSResolve() local 103 assertEquals("abc", response1.body().string()); in checkRemoteDNSResolve()
|
D | ConnectionReuseTest.java | 197 Response response1 = client.newCall(request).execute(); in http2ConnectionsAreSharedBeforeResponseIsConsumed() local 199 response1.body().string(); // Discard the response body. in http2ConnectionsAreSharedBeforeResponseIsConsumed() 214 Response response1 = client.newCall(request).execute(); in connectionsAreEvicted() local 215 assertEquals("a", response1.body().string()); in connectionsAreEvicted()
|
D | CallTest.java | 809 Response response1 = client.newCall(request1).execute(); in reusedSinksGetIndependentTimeoutInstances() local 810 assertEquals(200, response1.code()); in reusedSinksGetIndependentTimeoutInstances() 840 Response response1 = client.newCall(request1).execute(); in reusedSourcesGetIndependentTimeoutInstances() local 841 BufferedSource body1 = response1.body().source(); in reusedSourcesGetIndependentTimeoutInstances() 1031 Response response1 = client.newCall(request1).execute(); in matchingPinnedCertificate() local 1033 for (Certificate certificate : response1.handshake().peerCertificates()) { in matchingPinnedCertificate() 1036 response1.body().close(); in matchingPinnedCertificate() 1042 assertNotSame(response2.handshake(), response1.handshake()); in matchingPinnedCertificate() 1091 Response response1 = client.newCall(request1).execute(); in postBodyRetransmittedOnFailureRecovery() local 1092 assertEquals("abc", response1.body().string()); in postBodyRetransmittedOnFailureRecovery()
|
D | InterceptorTest.java | 394 Response response1 = chain.proceed(chain.request()); in applicationInterceptorsCanMakeMultipleRequestsToServer() 395 response1.body().close(); in applicationInterceptorsCanMakeMultipleRequestsToServer()
|
D | URLConnectionTest.java | 1320 MockResponse response1 = new MockResponse(); in testEarlyDisconnectDoesntHarmPooling() local 1321 transferKind.setBody(response1, "ABCDEFGHIJK", 1024); in testEarlyDisconnectDoesntHarmPooling() 1322 server.enqueue(response1); in testEarlyDisconnectDoesntHarmPooling() 2135 MockResponse response1 = new MockResponse() 2139 response1.setBody("This page has moved!"); 2141 server.enqueue(response1);
|
/external/llvm-project/llvm/test/tools/llvm-ar/ |
D | response.test | 4 # RUN: echo 'rc %t1.a %t.txt' > %t.response1.txt 5 # RUN: llvm-ar @%t.response1.txt 30 # RUN: not llvm-ar --rsp-quoting=foobar @%t.response1.txt 2>&1 | \
|
/external/okhttp/okhttp-apache/src/test/java/com/squareup/okhttp/apache/ |
D | OkApacheClientTest.java | 79 HttpResponse response1 = client.execute(request1); in headers() local 80 Header[] headers1 = response1.getHeaders("Foo"); in headers() 157 HttpResponse response1 = client.execute(request1); in contentType() local 158 Header[] headers1 = response1.getHeaders("Content-Type"); in contentType() 161 assertNotNull(response1.getEntity().getContentType()); in contentType() 162 assertEquals("text/html", response1.getEntity().getContentType().getValue()); in contentType()
|
/external/python/httplib2/tests/ |
D | test_http.py | 234 response1, content1 = http.request(uri, "GET") 236 assert response1.status == 200 238 assert response1["content-location"] == destination 240 assert response1.previous.status == 301 241 assert not response1.previous.fromcache 317 response1, content1 = http.request(second_url, "GET") 320 assert response1.status == 200 321 assert response1["content-location"] == final_url 323 assert response1.previous.status == 302 324 assert not response1.previous.fromcache
|
D | test_auth.py | 108 response1, _ = http.request(uri, "GET") 109 info = httplib2._parse_www_authenticate(response1, "authentication-info") 110 assert response1.status == 200
|
/external/okhttp/okhttp-tests/src/test/java/com/squareup/okhttp/internal/tls/ |
D | CertificatePinnerChainValidationTest.java | 83 Response response1 = call1.execute(); in pinRootNotPresentInChain() local 84 assertEquals("abc", response1.body().string()); in pinRootNotPresentInChain() 138 Response response1 = call1.execute(); in pinIntermediatePresentInChain() local 139 assertEquals("abc", response1.body().string()); in pinIntermediatePresentInChain()
|
/external/python/cpython3/Lib/test/ |
D | test_socketserver.py | 422 response1 = None 431 nonlocal response1 432 response1 = reader.readline() 452 self.assertEqual(server.sent1, len(response1)) 453 self.assertEqual(response1, b'write data\n')
|
D | test_urllib2.py | 1297 response1 = b"HTTP/1.1 302 Found\r\nLocation: ?query\r\n\r\n" 1298 http.client.HTTPConnection = test_urllib.fakehttp(response1)
|
/external/robolectric-shadows/shadows/httpclient/src/test/java/org/robolectric/shadows/httpclient/ |
D | ShadowDefaultRequestDirectorTest.java | 246 HttpResponse response1 = requestDirector.execute(null, new HttpGet("http://example.com"), null); in shouldHandleMultipleInvocations() local 249 assertThat(response1.getStatusLine().getStatusCode()).isEqualTo(200); in shouldHandleMultipleInvocations() 250 assertThat(getStringContent(response1)).isEqualTo("a happy response body"); in shouldHandleMultipleInvocations()
|
/external/grpc-grpc/test/cpp/interop/ |
D | interop_client.cc | 879 SimpleResponse response1; in DoCacheableUnary() local 885 serviceStub_.Get()->CacheableUnaryCall(&context1, request, &response1); in DoCacheableUnary() 890 response1.payload().body().c_str()); in DoCacheableUnary() 907 GPR_ASSERT(response2.payload().body() == response1.payload().body()); in DoCacheableUnary() 928 GPR_ASSERT(response3.payload().body() != response1.payload().body()); in DoCacheableUnary()
|
/external/grpc-grpc/src/csharp/Grpc.IntegrationTesting/ |
D | InteropClient.cs | 612 … var response1 = client.UnaryCall(compressedRequest, CreateClientCompressionMetadata(true)); in RunClientCompressedUnary() 613 Assert.AreEqual(314159, response1.Payload.Body.Length); in RunClientCompressedUnary()
|
/external/llvm-project/lldb/unittests/Process/gdb-remote/ |
D | GDBRemoteCommunicationClientTest.cpp | 579 std::string response1 = in TEST_F() local 582 HandlePacket(server, expected_packet, response1+response2); in TEST_F()
|
/external/python/cpython2/Lib/test/ |
D | test_urllib2.py | 1044 response1 = b"HTTP/1.1 302 Found\r\nLocation: ?query\r\n\r\n" 1045 httplib.HTTPConnection = test_urllib.fakehttp(response1)
|
/external/grpc-grpc-java/interop-testing/src/main/java/io/grpc/testing/integration/ |
D | AbstractInteropTest.java | 373 SimpleResponse response1 = in cacheableUnary() local 383 assertEquals(response1, response2); in cacheableUnary() 384 assertNotEquals(response1, response3); in cacheableUnary()
|