Search Options

Display Count
Sort
Preferred Language
Advanced Search

Results 1 - 1 of 1 for testHttpLoggingInterceptor (0.09 seconds)

  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 {
    Created: Fri Apr 03 11:42:14 GMT 2026
    - Last Modified: Thu Aug 21 14:27:04 GMT 2025
    - 3.2K bytes
    - Click Count (0)
Back to Top