- Sort Score
- Result 10 results
- Languages All
Results 1 - 6 of 6 for BOOM (0.01 sec)
-
okhttp/src/jvmTest/kotlin/okhttp3/InterceptorTest.kt
* exception goes to the uncaught exception handler. */ private fun interceptorThrowsRuntimeExceptionAsynchronous(network: Boolean) { val boom = RuntimeException("boom!") addInterceptor(network) { chain: Interceptor.Chain? -> throw boom } val executor = ExceptionCatchingExecutor() client = client .newBuilder() .dispatcher(Dispatcher(executor)) .build()
Registered: Fri Dec 26 11:42:13 UTC 2025 - Last Modified: Tue Nov 04 16:11:23 UTC 2025 - 28.2K bytes - Viewed (0) -
okhttp/src/jvmTest/kotlin/okhttp3/ServerTruncatesRequestTest.kt
val requestBody = object : RequestBody() { override fun contentType(): MediaType? = null override fun writeTo(sink: BufferedSink) { throw IOException("boom") // Despite this exception, 'sink' is healthy. } } val callA = client.newCall( Request( url = server.url("/"), body = requestBody, ),Registered: Fri Dec 26 11:42:13 UTC 2025 - Last Modified: Tue Nov 04 19:13:52 UTC 2025 - 10.4K bytes - Viewed (0) -
okhttp/src/jvmTest/kotlin/okhttp3/DuplexTest.kt
Registered: Fri Dec 26 11:42:13 UTC 2025 - Last Modified: Tue Nov 04 19:13:52 UTC 2025 - 25.8K bytes - Viewed (0) -
okhttp/src/jvmTest/kotlin/okhttp3/internal/ws/WebSocketHttpTest.kt
) fun throwingOnFailLogs() { webServer.enqueue( MockResponse .Builder() .code(200) .body("Body") .build(), ) val e = RuntimeException("boom") clientListener.setNextEventDelegate( object : WebSocketListener() { override fun onFailure( webSocket: WebSocket, t: Throwable, response: Response?,
Registered: Fri Dec 26 11:42:13 UTC 2025 - Last Modified: Tue Nov 04 19:13:52 UTC 2025 - 35.5K bytes - Viewed (0) -
okhttp/src/jvmTest/kotlin/okhttp3/CallTest.kt
} @Test fun clientReadsHeadersDataTrailersHttp2() { platform.assumeHttp2Support() server.enqueue( MockResponse .Builder() .clearHeaders() .addHeader("h1", "v1") .addHeader("h2", "v2") .body("HelloBonjour") .trailers(headersOf("trailers", "boom")) .build(), )
Registered: Fri Dec 26 11:42:13 UTC 2025 - Last Modified: Tue Nov 04 19:13:52 UTC 2025 - 147.4K bytes - Viewed (0) -
okhttp/src/jvmTest/kotlin/okhttp3/EventListenerTest.kt
Dispatcher::class.java to Dispatcher(), Handshake::class.java to handshake, HttpUrl::class.java to url, IOException::class.java to IOException("boom"), InetSocketAddress::class.java to InetSocketAddress.createUnresolved("localhost", 80), List::class.java to listOf<Any?>(), Long::class.java to 123L,
Registered: Fri Dec 26 11:42:13 UTC 2025 - Last Modified: Wed Nov 05 18:28:35 UTC 2025 - 70.5K bytes - Viewed (0)