Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 2 of 2 for CacheResponse (0.09 sec)

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

        val request = Request(server.url("/abc"))
    
        val response = testBasicCachingRules(request)
    
        assertThat(response.request.url).isEqualTo(request.url)
        assertThat(response.cacheResponse!!.request.url).isEqualTo(request.url)
      }
    
      @Test
      fun postWithOverrideResponse() {
        val url = server.url("/abc?token=123")
    Registered: Fri Nov 01 11:42:11 UTC 2024
    - Last Modified: Wed Apr 10 19:46:48 UTC 2024
    - 108.6K bytes
    - Viewed (0)
  2. okhttp/src/test/java/okhttp3/CallTest.kt

          .assertReceivedResponseAtMillis(request1SentAt, request1ReceivedAt)
    
        // Check the cached response. Its request contains only the saved Vary headers.
        cacheHit.cacheResponse()
          .assertCode(200)
          .assertHeaders(
            Headers.Builder()
              .add("ETag", "v1")
              .add("Cache-Control", "max-age=60")
              .add("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