- Sort Score
- Num 10 results
- Language All
Results 11 - 13 of 13 for onRequestStart (0.3 seconds)
-
okhttp/src/jvmTest/kotlin/okhttp3/CallTest.kt
} } /** https://github.com/square/okhttp/issues/4875 */ @Test fun interceptorRecoversWhenRoutesExhausted() { server.enqueue(MockResponse.Builder().onRequestStart(CloseSocket()).build()) server.enqueue(MockResponse()) client = client .newBuilder() .addInterceptor( Interceptor { chain: Interceptor.Chain ->
Created: Fri Apr 03 11:42:14 GMT 2026 - Last Modified: Sun Mar 15 09:02:18 GMT 2026 - 146.5K bytes - Click Count (0) -
mockwebserver/src/main/kotlin/mockwebserver3/MockWebServer.kt
} catch (e: SocketException) { logger.fine("${this@MockWebServer} done accepting connections: ${e.message}") return } val peek = dispatcher.peek() if (peek.onRequestStart is CloseSocket) { dispatchBookkeepingRequest( connectionIndex = nextConnectionIndex++, exchangeIndex = 0, socket = MockWebServerSocket(socket), )
Created: Fri Apr 03 11:42:14 GMT 2026 - Last Modified: Tue Jan 27 09:00:39 GMT 2026 - 40.3K bytes - Click Count (0) -
okhttp/src/jvmTest/kotlin/okhttp3/URLConnectionTest.kt
sinkReference.get().write("ghi".toByteArray()) sinkReference.get().emit() } } @Test fun getHeadersThrows() { server.enqueue(MockResponse.Builder().onRequestStart(CloseSocket()).build()) assertFailsWith<IOException> { getResponse(newRequest("/")) } } @Test fun dnsFailureThrowsIOException() { client = client
Created: Fri Apr 03 11:42:14 GMT 2026 - Last Modified: Tue Jan 27 09:00:39 GMT 2026 - 133.3K bytes - Click Count (0)