Searched refs:connection1 (Results 1 – 6 of 6) sorted by relevance
/external/okhttp/okhttp-urlconnection/src/test/java/com/squareup/okhttp/ |
D | OkUrlFactoryTest.java | 88 HttpURLConnection connection1 = factory.open(server.getUrl("/")); in conditionalCacheHitResponseSourceHeaders() local 89 assertResponseHeader(connection1, "NETWORK 200"); in conditionalCacheHitResponseSourceHeaders() 90 assertResponseBody(connection1, "Isla Nublar"); in conditionalCacheHitResponseSourceHeaders() 104 HttpURLConnection connection1 = factory.open(server.getUrl("/")); in conditionalCacheMissResponseSourceHeaders() local 105 assertResponseHeader(connection1, "NETWORK 200"); in conditionalCacheMissResponseSourceHeaders() 106 assertResponseBody(connection1, "Isla Nublar"); in conditionalCacheMissResponseSourceHeaders() 118 HttpURLConnection connection1 = factory.open(server.getUrl("/")); in cacheResponseSourceHeaders() local 119 assertResponseHeader(connection1, "NETWORK 200"); in cacheResponseSourceHeaders() 120 assertResponseBody(connection1, "Isla Nublar"); in cacheResponseSourceHeaders() 130 HttpURLConnection connection1 = factory.open(server.getUrl("/")); in noneResponseSourceHeaders() local [all …]
|
D | UrlConnectionCacheTest.java | 340 HttpsURLConnection connection1 = (HttpsURLConnection) client.open(server.getUrl("/")); in secureResponseCachingAndRedirects() local 341 assertEquals("ABC", readAscii(connection1)); in secureResponseCachingAndRedirects() 342 assertNotNull(connection1.getCipherSuite()); in secureResponseCachingAndRedirects() 351 assertEquals(connection1.getCipherSuite(), connection2.getCipherSuite()); in secureResponseCachingAndRedirects() 377 HttpURLConnection connection1 = client.open(server.getUrl("/")); in secureResponseCachingAndProtocolRedirects() local 378 assertEquals("ABC", readAscii(connection1)); in secureResponseCachingAndProtocolRedirects() 1249 URLConnection connection1 = client.open(url); in varyMatchesUnchangedRequestHeaderField() local 1250 connection1.addRequestProperty("Accept-Language", "fr-CA"); in varyMatchesUnchangedRequestHeaderField() 1251 assertEquals("A", readAscii(connection1)); in varyMatchesUnchangedRequestHeaderField() 1298 URLConnection connection1 = client.open(url); in varyFieldsAreCaseInsensitive() local [all …]
|
/external/okhttp/okhttp-android-support/src/test/java/com/squareup/okhttp/internal/huc/ |
D | ResponseCacheTest.java | 353 HttpsURLConnection connection1 = (HttpsURLConnection) openConnection(server.getUrl("/")); in secureResponseCachingAndRedirects() local 354 assertEquals("ABC", readAscii(connection1)); in secureResponseCachingAndRedirects() 355 assertNotNull(connection1.getCipherSuite()); in secureResponseCachingAndRedirects() 362 assertEquals(connection1.getCipherSuite(), connection2.getCipherSuite()); in secureResponseCachingAndRedirects() 391 HttpURLConnection connection1 = openConnection(server.getUrl("/")); in secureResponseCachingAndProtocolRedirects() local 392 assertEquals("ABC", readAscii(connection1)); in secureResponseCachingAndProtocolRedirects() 902 HttpURLConnection connection1 = openConnection(server.getUrl("/")); in clientSideNoStore() local 903 connection1.setRequestProperty("Cache-Control", "no-store"); in clientSideNoStore() 904 assertEquals("A", readAscii(connection1)); in clientSideNoStore() 1329 HttpURLConnection connection1 = openConnection(server.getUrl("/")); in varyMatchesRemovedRequestHeaderField() local [all …]
|
/external/okhttp/okhttp-tests/src/test/java/com/squareup/okhttp/internal/framed/ |
D | HttpOverSpdyTest.java | 186 HttpURLConnection connection1 = client.open(server.getUrl("/r1")); in spdyConnectionReuse() local 188 assertEquals("ABC", readAscii(connection1.getInputStream(), 3)); in spdyConnectionReuse() 190 assertEquals("DEF", readAscii(connection1.getInputStream(), 3)); in spdyConnectionReuse() 315 HttpURLConnection connection1 = client.open(server.getUrl("/")); in spdyConnectionTimeout() local 316 connection1.setReadTimeout(2000); in spdyConnectionTimeout() 319 connection1.connect(); in spdyConnectionTimeout() 321 assertContent("A", connection1, Integer.MAX_VALUE); in spdyConnectionTimeout() 362 HttpURLConnection connection1 = client.open(server.getUrl("/")); in responseCachedWithoutConsumingFullBody() local 363 InputStream in1 = connection1.getInputStream(); in responseCachedWithoutConsumingFullBody() 404 HttpURLConnection connection1 = client.open(server.getUrl("/")); in disconnectWithStreamNotEstablished() local [all …]
|
D | HttpOverHttp2Test.java | 100 HttpURLConnection connection1 = client.open(server.getUrl("/")); in settingsLimitsMaxConcurrentStreams() local 101 connection1.connect(); in settingsLimitsMaxConcurrentStreams() 106 assertContent("ABC", connection1, Integer.MAX_VALUE); in settingsLimitsMaxConcurrentStreams()
|
/external/okhttp/okhttp-tests/src/test/java/com/squareup/okhttp/ |
D | URLConnectionTest.java | 418 HttpURLConnection connection1 = client.open(server.getUrl("/a")); in testServerClosesOutput() local 419 connection1.setReadTimeout(100); in testServerClosesOutput() 420 assertContent("This connection won't pool properly", connection1); in testServerClosesOutput() 585 HttpURLConnection connection1 = client.open(server.getUrl("/")); in connectViaHttpsReusingConnectionsDifferentFactories() local 586 assertContent("this response comes via HTTPS", connection1); in connectViaHttpsReusingConnectionsDifferentFactories() 1255 HttpURLConnection connection1 = client.open(server.getUrl("/")); in testClientConfiguredGzipContentEncodingAndConnectionReuse() local 1256 connection1.addRequestProperty("Accept-Encoding", "gzip"); in testClientConfiguredGzipContentEncodingAndConnectionReuse() 1257 InputStream gunzippedIn = new GZIPInputStream(connection1.getInputStream()); in testClientConfiguredGzipContentEncodingAndConnectionReuse() 1316 HttpURLConnection connection1 = client.open(server.getUrl("/")); in testEarlyDisconnectDoesntHarmPooling() local 1317 InputStream in1 = connection1.getInputStream(); in testEarlyDisconnectDoesntHarmPooling() [all …]
|