Home
last modified time | relevance | path

Searched refs:connection2 (Results 1 – 6 of 6) sorted by relevance

/external/okhttp/okhttp-urlconnection/src/test/java/com/squareup/okhttp/
DOkUrlFactoryTest.java92 HttpURLConnection connection2 = factory.open(server.getUrl("/")); in conditionalCacheHitResponseSourceHeaders() local
93 assertResponseHeader(connection2, "CONDITIONAL_CACHE 304"); in conditionalCacheHitResponseSourceHeaders()
94 assertResponseBody(connection2, "Isla Nublar"); in conditionalCacheHitResponseSourceHeaders()
108 HttpURLConnection connection2 = factory.open(server.getUrl("/")); in conditionalCacheMissResponseSourceHeaders() local
109 assertResponseHeader(connection2, "CONDITIONAL_CACHE 200"); in conditionalCacheMissResponseSourceHeaders()
110 assertResponseBody(connection2, "Isla Sorna"); in conditionalCacheMissResponseSourceHeaders()
122 HttpURLConnection connection2 = factory.open(server.getUrl("/")); in cacheResponseSourceHeaders() local
123 assertResponseHeader(connection2, "CACHE 200"); in cacheResponseSourceHeaders()
124 assertResponseBody(connection2, "Isla Nublar"); in cacheResponseSourceHeaders()
134 HttpURLConnection connection2 = factory.open(server.getUrl("/")); in noneResponseSourceHeaders() local
[all …]
DUrlConnectionCacheTest.java345 HttpsURLConnection connection2 = (HttpsURLConnection) client.open(server.getUrl("/")); in secureResponseCachingAndRedirects() local
346 assertEquals("ABC", readAscii(connection2)); in secureResponseCachingAndRedirects()
347 assertNotNull(connection2.getCipherSuite()); in secureResponseCachingAndRedirects()
351 assertEquals(connection1.getCipherSuite(), connection2.getCipherSuite()); in secureResponseCachingAndRedirects()
381 HttpURLConnection connection2 = client.open(server.getUrl("/")); in secureResponseCachingAndProtocolRedirects() local
382 assertEquals("ABC", readAscii(connection2)); in secureResponseCachingAndProtocolRedirects()
1252 URLConnection connection2 = client.open(url); in varyMatchesUnchangedRequestHeaderField() local
1253 connection2.addRequestProperty("Accept-Language", "fr-CA"); in varyMatchesUnchangedRequestHeaderField()
1254 assertEquals("A", readAscii(connection2)); in varyMatchesUnchangedRequestHeaderField()
1301 URLConnection connection2 = client.open(url); in varyFieldsAreCaseInsensitive() local
[all …]
/external/okhttp/okhttp-android-support/src/test/java/com/squareup/okhttp/internal/huc/
DResponseCacheTest.java358 HttpsURLConnection connection2 = (HttpsURLConnection) openConnection(server.getUrl("/")); in secureResponseCachingAndRedirects() local
359 assertEquals("ABC", readAscii(connection2)); in secureResponseCachingAndRedirects()
360 assertNotNull(connection2.getCipherSuite()); in secureResponseCachingAndRedirects()
362 assertEquals(connection1.getCipherSuite(), connection2.getCipherSuite()); in secureResponseCachingAndRedirects()
395 HttpURLConnection connection2 = openConnection(server.getUrl("/")); in secureResponseCachingAndProtocolRedirects() local
396 assertEquals("ABC", readAscii(connection2)); in secureResponseCachingAndProtocolRedirects()
906 HttpURLConnection connection2 = openConnection(server.getUrl("/")); in clientSideNoStore() local
907 assertEquals("B", readAscii(connection2)); in clientSideNoStore()
1316 HttpURLConnection connection2 = openConnection(server.getUrl("/")); in varyMatchesAddedRequestHeaderField() local
1317 connection2.setRequestProperty("Foo", "bar"); in varyMatchesAddedRequestHeaderField()
[all …]
/external/okhttp/okhttp-tests/src/test/java/com/squareup/okhttp/internal/framed/
DHttpOverSpdyTest.java187 HttpURLConnection connection2 = client.open(server.getUrl("/r2")); in spdyConnectionReuse() local
189 assertEquals("GHI", readAscii(connection2.getInputStream(), 3)); in spdyConnectionReuse()
191 assertEquals("JKL", readAscii(connection2.getInputStream(), 3)); in spdyConnectionReuse()
317 HttpURLConnection connection2 = client.open(server.getUrl("/")); in spdyConnectionTimeout() local
318 connection2.setReadTimeout(200); in spdyConnectionTimeout()
320 connection2.connect(); in spdyConnectionTimeout()
367 HttpURLConnection connection2 = client.open(server.getUrl("/")); in responseCachedWithoutConsumingFullBody() local
368 InputStream in2 = connection2.getInputStream(); in responseCachedWithoutConsumingFullBody()
410 HttpURLConnection connection2 = client.open(server.getUrl("/")); in disconnectWithStreamNotEstablished() local
411 assertContent("abc", connection2, 3); in disconnectWithStreamNotEstablished()
DHttpOverHttp2Test.java102 HttpURLConnection connection2 = client.open(server.getUrl("/")); in settingsLimitsMaxConcurrentStreams() local
103 connection2.connect(); in settingsLimitsMaxConcurrentStreams()
107 assertContent("DEF", connection2, Integer.MAX_VALUE); in settingsLimitsMaxConcurrentStreams()
/external/okhttp/okhttp-tests/src/test/java/com/squareup/okhttp/
DURLConnectionTest.java422 HttpURLConnection connection2 = client.open(server.getUrl("/b")); in testServerClosesOutput() local
423 connection2.setReadTimeout(100); in testServerClosesOutput()
424 assertContent("This comes after a busted connection", connection2); in testServerClosesOutput()
589 HttpURLConnection connection2 = client.open(server.getUrl("/")); in connectViaHttpsReusingConnectionsDifferentFactories() local
591 readAscii(connection2.getInputStream(), Integer.MAX_VALUE); in connectViaHttpsReusingConnectionsDifferentFactories()
1261 HttpURLConnection connection2 = client.open(server.getUrl("/")); in testClientConfiguredGzipContentEncodingAndConnectionReuse() local
1262 assertEquals("two (identity)", readAscii(connection2.getInputStream(), Integer.MAX_VALUE)); in testClientConfiguredGzipContentEncodingAndConnectionReuse()
1322 HttpURLConnection connection2 = client.open(server.getUrl("/")); in testEarlyDisconnectDoesntHarmPooling() local
1323 InputStream in2 = connection2.getInputStream(); in testEarlyDisconnectDoesntHarmPooling()
1326 connection2.disconnect(); in testEarlyDisconnectDoesntHarmPooling()
[all …]