Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 2 of 2 for evictAll (0.05 sec)

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

            .build()
        val response = get(url)
        assertThat(response.body.string()).isEqualTo(entryBody)
        assertThat(response.header("Content-Length")).isEqualTo("3")
      }
    
      @Test
      fun evictAll() {
        server.enqueue(
          MockResponse
            .Builder()
            .addHeader("Cache-Control: max-age=60")
            .body("A")
            .build(),
        )
        server.enqueue(
    Registered: Fri Sep 05 11:42:10 UTC 2025
    - Last Modified: Sat Aug 16 09:39:51 UTC 2025
    - 113.6K bytes
    - Viewed (0)
  2. okhttp/src/jvmTest/kotlin/okhttp3/URLConnectionTest.kt

        // Connection is not pooled.
        assertThat(server.takeRequest().exchangeIndex).isEqualTo(0)
      }
    
      @Test
      fun endOfStreamResponseIsNotPooled() {
        client.connectionPool.evictAll()
        server.enqueue(
          MockResponse
            .Builder()
            .body("{}")
            .clearHeaders()
            .onResponseEnd(ShutdownConnection)
            .build(),
        )
    Registered: Fri Sep 05 11:42:10 UTC 2025
    - Last Modified: Sat Jun 21 20:36:35 UTC 2025
    - 133.2K bytes
    - Viewed (0)
Back to top