- Sort Score
- Result 10 results
- Languages All
Results 1 - 4 of 4 for exception (0.21 sec)
-
okhttp/src/test/java/okhttp3/URLConnectionTest.kt
body = transferKind.newRequestBody(requestBody), ), ) assertContent("B", response) break } catch (socketException: IOException) { // If there's a socket exception, this must have a streamed request body. assertThat(j).isEqualTo(0) assertThat(transferKind).isIn(TransferKind.CHUNKED, TransferKind.FIXED_LENGTH) } }
Plain Text - Registered: Fri May 03 11:42:14 GMT 2024 - Last Modified: Sat Jan 20 10:30:28 GMT 2024 - 131.7K bytes - Viewed (0) -
okhttp/src/test/java/okhttp3/CallTest.kt
server.enqueue(MockResponse(code = 401)) client = client.newBuilder() .authenticator { _: Route?, _: Response -> throw IOException("IOException!") } .build() val request = Request(server.url("/")) executeSynchronously(request) .assertFailure(IOException::class.java) assertThat(client.connectionPool.idleConnectionCount()).isEqualTo(1) } @Test
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-android/src/main/baseline-prof.txt
HSPLokhttp3/internal/connection/RealCall;->messageDone$okhttp(Lokhttp3/internal/connection/Exchange;ZZLjava/io/IOException;)Ljava/io/IOException; HSPLokhttp3/internal/connection/RealCall;->noMoreExchanges$okhttp(Ljava/io/IOException;)Ljava/io/IOException; HSPLokhttp3/internal/connection/RealCall;->releaseConnectionNoEvents$okhttp()Ljava/net/Socket;
Plain Text - Registered: Fri May 03 11:42:14 GMT 2024 - Last Modified: Mon Mar 21 11:22:00 GMT 2022 - 127.9K bytes - Viewed (0) -
okhttp/src/test/java/okhttp3/CacheTest.kt
assertThat(response2.handshake!!.cipherSuite).isEqualTo( response1.handshake!!.cipherSuite, ) } /** * We've had bugs where caching and cross-protocol redirects yield class cast exceptions internal * to the cache because we incorrectly assumed that HttpsURLConnection was always HTTPS and * HttpURLConnection was always HTTP; in practice redirects mean that each can do either. *
Plain Text - Registered: Fri May 03 11:42:14 GMT 2024 - Last Modified: Wed Apr 10 19:46:48 GMT 2024 - 108.6K bytes - Viewed (0)