Search Options

Display Count
Sort
Preferred Language
Advanced Search

Results 1 - 1 of 1 for addNetworkInterceptor (0.13 seconds)

The search processing time has exceeded the limit. The displayed results may be partial.

  1. okhttp/src/jvmTest/kotlin/okhttp3/CacheTest.kt

        val url = server.url("/")
        assertThat(get(url).body.string()).isEqualTo("A")
        val ifNoneMatch = AtomicReference<String?>()
        client =
          client
            .newBuilder()
            .addNetworkInterceptor(
              Interceptor { chain: Interceptor.Chain ->
                ifNoneMatch.compareAndSet(null, chain.request().header("If-None-Match"))
                chain.proceed(chain.request())
              },
    Created: Fri Dec 26 11:42:13 GMT 2025
    - Last Modified: Fri Oct 03 17:41:45 GMT 2025
    - 116.8K bytes
    - Click Count (0)
Back to Top