Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 1 of 1 for usesCacheOnlyIfFresh (0.1 sec)

  1. okhttp-dnsoverhttps/src/test/java/okhttp3/dnsoverhttps/DnsOverHttpsTest.kt

        assertThat(recordedRequest.method).isEqualTo("POST")
        assertThat(recordedRequest.path)
          .isEqualTo("/lookup?ct")
      }
    
      @Test
      fun usesCacheOnlyIfFresh() {
        val cache = Cache(File("./target/DnsOverHttpsTest.cache"), 100 * 1024L)
        val cachedClient = bootstrapClient.newBuilder().cache(cache).build()
        val cachedDns = buildLocalhost(cachedClient, false)
    Registered: Fri Nov 01 11:42:11 UTC 2024
    - Last Modified: Wed Apr 10 19:46:48 UTC 2024
    - 11K bytes
    - Viewed (0)
Back to top