Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 3 of 3 for Shaver (0.16 sec)

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

        // We know that a fresh connection was created if the server recorded a request with sequence
        // number 0. Since the client may have attempted to reuse the broken connection just before
        // creating a fresh connection, the server may have recorded 2 requests at this point. The order
        // of recording is non-deterministic.
        val requestAfter = server.takeRequest()
        assertThat(
    Plain Text
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Sat Jan 20 10:30:28 GMT 2024
    - 131.7K bytes
    - Viewed (0)
  2. okhttp/src/test/java/okhttp3/CallTest.kt

          MockResponse.Builder()
            .body(gzippedBody)
            .addHeader("Content-Encoding: gzip")
            .build(),
        )
    
        // Confirm that the user request doesn't have Accept-Encoding, and the user
        // response doesn't have a Content-Encoding or Content-Length.
        val userResponse = executeSynchronously("/")
        userResponse.assertCode(200)
          .assertRequestHeader("Accept-Encoding")
    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)
  3. okhttp/src/test/java/okhttp3/CacheTest.kt

            "Etag", "a", "Cache-Control", "max-age=0",
            "A", "a1", "B", "b2", "B", "b3", "Content-Length", "4",
          ),
        )
    
        // The original 'A' header is retained because the network response doesn't have one.
        // The original 'B' headers are replaced by the network response.
        // The network's 'C' header is added.
        val response2 = get(server.url("/"))
        assertThat(response2.body.string()).isEqualTo("abcd")
    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