Home
last modified time | relevance | path

Searched refs:response1 (Results 1 – 21 of 21) sorted by relevance

/external/okhttp/samples/guide/src/main/java/com/squareup/okhttp/recipes/
DCacheResponse.java41 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/
DCacheTest.java220 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 …]
DSocksProxyTest.java55 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()
DConnectionReuseTest.java197 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()
DCallTest.java809 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()
DInterceptorTest.java394 Response response1 = chain.proceed(chain.request()); in applicationInterceptorsCanMakeMultipleRequestsToServer()
395 response1.body().close(); in applicationInterceptorsCanMakeMultipleRequestsToServer()
DURLConnectionTest.java1308 MockResponse response1 = new MockResponse(); in testEarlyDisconnectDoesntHarmPooling() local
1309 transferKind.setBody(response1, "ABCDEFGHIJK", 1024); in testEarlyDisconnectDoesntHarmPooling()
1310 server.enqueue(response1); in testEarlyDisconnectDoesntHarmPooling()
2123 MockResponse response1 = new MockResponse()
2127 response1.setBody("This page has moved!");
2129 server.enqueue(response1);
/external/python/httplib2/tests/
Dtest_http.py236 response1, content1 = http.request(uri, "GET")
238 assert response1.status == 200
240 assert response1["content-location"] == destination
242 assert response1.previous.status == 301
243 assert not response1.previous.fromcache
319 response1, content1 = http.request(second_url, "GET")
322 assert response1.status == 200
323 assert response1["content-location"] == final_url
325 assert response1.previous.status == 302
326 assert not response1.previous.fromcache
Dtest_auth.py108 response1, _ = http.request(uri, "GET")
109 info = httplib2._parse_www_authenticate(response1, "authentication-info")
110 assert response1.status == 200
/external/okhttp/okhttp-apache/src/test/java/com/squareup/okhttp/apache/
DOkApacheClientTest.java79 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/okhttp/okhttp-tests/src/test/java/com/squareup/okhttp/internal/tls/
DCertificatePinnerChainValidationTest.java83 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/
Dtest_socketserver.py425 response1 = None
434 nonlocal response1
435 response1 = reader.readline()
455 self.assertEqual(server.sent1, len(response1))
456 self.assertEqual(response1, b'write data\n')
Dtest_urllib2.py1296 response1 = b"HTTP/1.1 302 Found\r\nLocation: ?query\r\n\r\n"
1297 http.client.HTTPConnection = test_urllib.fakehttp(response1)
/external/robolectric-shadows/shadows/httpclient/src/test/java/org/robolectric/shadows/httpclient/
DShadowDefaultRequestDirectorTest.java246 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/
Dinterop_client.cc879 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/u-boot/drivers/mmc/
Darm_pl180_mmci.h154 u32 response1; /* 0x18*/ member
Darm_pl180_mmci.c63 cmd->response[1] = readl(&host->base->response1); in wait_for_command_end()
/external/grpc-grpc/src/csharp/Grpc.IntegrationTesting/
DInteropClient.cs612 … var response1 = client.UnaryCall(compressedRequest, CreateClientCompressionMetadata(true)); in RunClientCompressedUnary()
613 Assert.AreEqual(314159, response1.Payload.Body.Length); in RunClientCompressedUnary()
/external/python/cpython2/Lib/test/
Dtest_urllib2.py1044 response1 = b"HTTP/1.1 302 Found\r\nLocation: ?query\r\n\r\n"
1045 httplib.HTTPConnection = test_urllib.fakehttp(response1)
/external/autotest/client/common_lib/cros/
Ddev_server_unittest.py493 response1 = (True, 100)
527 json.dumps(response1))
/external/grpc-grpc-java/interop-testing/src/main/java/io/grpc/testing/integration/
DAbstractInteropTest.java373 SimpleResponse response1 = in cacheableUnary() local
383 assertEquals(response1, response2); in cacheableUnary()
384 assertNotEquals(response1, response3); in cacheableUnary()