Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 2 of 2 for conditionalCacheMiss (0.15 sec)

  1. okhttp/src/test/java/okhttp3/EventListenerTest.kt

          "RequestHeadersEnd", "ResponseHeadersStart", "ResponseHeadersEnd",
          "ResponseBodyStart", "ResponseBodyEnd", "CacheHit", "ConnectionReleased", "CallEnd",
        )
      }
    
      @Test
      fun conditionalCacheMiss() {
        enableCache()
        server.enqueue(
          MockResponse.Builder()
            .addHeader("ETag: v1")
            .body("abc")
            .build(),
        )
        server.enqueue(
    Registered: Fri Nov 01 11:42:11 UTC 2024
    - Last Modified: Sat Jan 20 10:30:28 UTC 2024
    - 56.9K bytes
    - Viewed (2)
  2. okhttp/src/test/java/okhttp3/CallTest.kt

        callback.await(request2.url).assertCode(200).assertBody("A")
        assertThat(server.takeRequest().headers["If-None-Match"]).isEqualTo("v1")
      }
    
      @Test
      fun conditionalCacheMiss() {
        server.enqueue(
          MockResponse(
            headers =
              headersOf(
                "ETag",
                "v1",
                "Vary",
                "Accept-Charset",
    Registered: Fri Nov 01 11:42:11 UTC 2024
    - Last Modified: Wed Apr 10 19:46:48 UTC 2024
    - 142.5K bytes
    - Viewed (0)
Back to top