Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 2 of 2 for Valid (0.22 sec)

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

       * connection that returns to the connection pool with the underlying socket closed. This relies
       * on an implementation detail so it might not be a valid test case in the future.
       */
      @Test
      fun cancelAfterResponseBodyEnd() {
        enableTls()
        server.enqueue(MockResponse(body = "abc"))
        server.enqueue(MockResponse(body = "def"))
        client =
    Plain Text
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Wed Apr 10 19:46:48 GMT 2024
    - 142.5K bytes
    - Viewed (0)
  2. okhttp/src/test/java/okhttp3/CacheTest.kt

            .body("C")
            .build(),
        )
        val valid = server.url("/valid")
        val response1 = get(valid)
        assertThat(response1.body.string()).isEqualTo("A")
        assertThat(response1.code).isEqualTo(HttpURLConnection.HTTP_OK)
        assertThat(response1.message).isEqualTo("A-OK")
        val response2 = get(valid)
        assertThat(response2.body.string()).isEqualTo("A")
    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