Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 1 of 1 for shortcircuit (0.05 sec)

  1. android-test/src/test/kotlin/okhttp/android/test/AndroidLoggingTest.kt

    @RunWith(RobolectricTestRunner::class)
    class AndroidLoggingTest {
      val clientBuilder =
        OkHttpClient.Builder().connectionSpecs(listOf(ConnectionSpec.CLEARTEXT)).dns {
          throw UnknownHostException("shortcircuit")
        }
    
      val request = Request("http://google.com/robots.txt".toHttpUrl())
    
      @Test
      fun testHttpLoggingInterceptor() {
        val interceptor =
          HttpLoggingInterceptor().apply {
    Registered: Fri Sep 05 11:42:10 UTC 2025
    - Last Modified: Thu Aug 21 14:27:04 UTC 2025
    - 3.2K bytes
    - Viewed (0)
Back to top