Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 1 of 1 for condition (0.15 sec)

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

        assertThat(get(url).body.string()).isEqualTo("A")
        assertThat(get(url).body.string()).isEqualTo("B")
      }
    
      /** @return the request with the conditional get headers. */
      private fun assertConditionallyCached(response: MockResponse): RecordedRequest {
        // scenario 1: condition succeeds
        server.enqueue(
          response.newBuilder()
            .body("A")
            .status("HTTP/1.1 200 A-OK")
            .build(),
        )
    Plain Text
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Wed Apr 10 19:46:48 GMT 2024
    - 108.6K bytes
    - Viewed (0)
Back to top