Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 1 of 1 for testHttpLoggingInterceptor (0.46 sec)

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

          throw UnknownHostException("shortcircuit")
        }
    
      val request = Request("http://google.com/robots.txt".toHttpUrl())
    
      @Test
      fun testHttpLoggingInterceptor() {
        val interceptor =
          HttpLoggingInterceptor().apply {
            level = HttpLoggingInterceptor.Level.BASIC
          }
    
        val client = clientBuilder.addInterceptor(interceptor).build()
    
        try {
    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