- Sort Score
- Result 10 results
- Languages All
Results 1 - 7 of 7 for recurses (0.16 sec)
-
docs/changelogs/changelog_4x.md
shares connections when hosts share both IP addresses and certificates, such as `squareup.com` and `www.squareup.com`. If a server refuses such sharing it will return HTTP 421 and OkHttp will automatically retry on an unshared connection. * Fix: Don't crash if a TLS tunnel's response body is truncated.
Plain Text - Registered: Fri May 03 11:42:14 GMT 2024 - Last Modified: Wed Apr 17 13:25:31 GMT 2024 - 25.2K bytes - Viewed (0) -
okhttp/src/test/java/okhttp3/CallTest.kt
assertThat(server.takeRequest().sequenceNumber).isEqualTo(0) // Second CONNECT call needs a new connection. assertThat(server.takeRequest().sequenceNumber).isEqualTo(0) // GET reuses the connection from the second connect. assertThat(server.takeRequest().sequenceNumber).isEqualTo(1) } @Test fun tooManyProxyAuthFailuresWithConnectionClose() {
Plain Text - Registered: Fri May 03 11:42:14 GMT 2024 - Last Modified: Wed Apr 10 19:46:48 GMT 2024 - 142.5K bytes - Viewed (0) -
okhttp/src/test/java/okhttp3/internal/http2/HttpOverHttp2Test.kt
assertThat(server.takeRequest().sequenceNumber).isEqualTo(1) // Pooled connection. assertThat(server.takeRequest().sequenceNumber).isEqualTo(0) // New connection. // Third call reuses the second connection. val response3 = client.newCall(request).execute() assertThat(response3.body.string()).isEqualTo("def") assertThat(server.takeRequest().sequenceNumber).isEqualTo(1) // New connection. }
Plain Text - Registered: Fri May 03 11:42:14 GMT 2024 - Last Modified: Thu Apr 11 22:09:35 GMT 2024 - 75.3K bytes - Viewed (0) -
okhttp/src/test/java/okhttp3/ResponseJvmTest.kt
assertThat(response.body.string()).isEqualTo("abc") assertFailsWith<IllegalStateException> { response.peekBody(3) } } /** * Returns a new response body that refuses to be read once it has been closed. This is true of * most [BufferedSource] instances, but not of [Buffer]. */ private fun responseBody(content: String): ResponseBody { val data = Buffer().writeUtf8(content)
Plain Text - Registered: Fri May 03 11:42:14 GMT 2024 - Last Modified: Mon Jan 08 01:13:22 GMT 2024 - 3.1K bytes - Viewed (0) -
okhttp/src/main/kotlin/okhttp3/OkHttpClient.kt
* failure to reach any individual IP address doesn't fail the overall request. This can * increase availability of multi-homed services. * * * **Stale pooled connections.** The [ConnectionPool] reuses sockets * to decrease request latency, but these connections will occasionally time out. * * * **Unreachable proxy servers.** A [ProxySelector] can be used to
Plain Text - Registered: Fri May 03 11:42:14 GMT 2024 - Last Modified: Sat Apr 06 04:21:33 GMT 2024 - 52K bytes - Viewed (0) -
okhttp/src/test/java/okhttp3/ResponseCommonTest.kt
assertThat(response.body.contentType()).isNull() assertThat(response.body.contentLength()).isEqualTo(0L) assertThat(response.body.byteString()).isEqualTo(EMPTY) } /** * Returns a new response body that refuses to be read once it has been closed. This is true of * most [BufferedSource] instances, but not of [Buffer]. */ private fun responseBody(content: String): ResponseBody { val data = Buffer().writeUtf8(content)
Plain Text - Registered: Fri May 03 11:42:14 GMT 2024 - Last Modified: Mon Jan 08 01:13:22 GMT 2024 - 3.6K bytes - Viewed (0) -
okhttp/src/test/java/okhttp3/ConnectionReuseTest.kt
handshakeCertificates2.sslSocketFactory(), handshakeCertificates2.trustManager, ) .build() // This client fails to connect because the new SSL socket factory refuses. assertFailsWith<IOException> { anotherClient.newCall(request).execute() }.also { expected -> when (expected) { is SSLException, is TlsFatalAlert -> {} else -> throw expected
Plain Text - Registered: Fri May 03 11:42:14 GMT 2024 - Last Modified: Mon Jan 08 01:13:22 GMT 2024 - 12.3K bytes - Viewed (0)