- Sort Score
- Result 10 results
- Languages All
Results 1 - 2 of 2 for connectFail (0.22 sec)
-
okhttp-logging-interceptor/src/test/java/okhttp3/logging/LoggingEventListenerTest.kt
.assertLogMatch(Regex("""dnsStart: ${url.host}""")) .assertLogMatch(Regex("""callFailed: java.net.UnknownHostException: reason""")) .assertNoMoreLogs() } @Test fun connectFail() { assumeNotWindows() server.useHttps(handshakeCertificates.sslSocketFactory()) server.protocols = Arrays.asList(Protocol.HTTP_2, Protocol.HTTP_1_1) server.enqueue( MockResponse.Builder()
Registered: Fri Nov 01 11:42:11 UTC 2024 - Last Modified: Sun Jan 14 10:20:09 UTC 2024 - 10.2K bytes - Viewed (0) -
okhttp-logging-interceptor/src/test/java/okhttp3/logging/HttpLoggingInterceptorTest.kt
.assertLogEqual("") .assertLogMatch(Regex("""<-- END HTTP \(\d+ms, binary 9-byte body omitted\)""")) .assertNoMoreLogs() } @Test fun connectFail() { setLevel(Level.BASIC) client = OkHttpClient.Builder() .dns { hostname: String? -> throw UnknownHostException("reason") } .addInterceptor(applicationInterceptor) .build()
Registered: Fri Nov 01 11:42:11 UTC 2024 - Last Modified: Sat Apr 06 09:14:38 UTC 2024 - 37.6K bytes - Viewed (0)