Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 3 of 3 for modifiers (0.19 sec)

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

            .clearHeaders()
            .code(HttpURLConnection.HTTP_NOT_MODIFIED)
            .addHeader("Content-Encoding: gzip")
            .build(),
        )
        server.enqueue(
          MockResponse(body = "b"),
        )
        val response1 = getResponse(newRequest("/"))
        assertThat(response1.code).isEqualTo(HttpURLConnection.HTTP_NOT_MODIFIED)
        assertContent("", response1)
    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

              ),
            body = "A",
          ),
        )
        server.enqueue(
          MockResponse.Builder()
            .clearHeaders()
            .addHeader("Donut: b")
            .code(HttpURLConnection.HTTP_NOT_MODIFIED)
            .build(),
        )
        client =
          client.newBuilder()
            .cache(cache)
            .build()
    
        // Store a response in the cache.
    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

            MockResponse.Builder()
              .addHeader("Last-Modified: $lastModifiedDate")
              .addHeader("Date: " + formatDate(-15, TimeUnit.SECONDS))
              .build(),
          )
        assertThat(conditionalRequest.headers["If-Modified-Since"])
          .isEqualTo(lastModifiedDate)
      }
    
      @Test
      fun defaultExpirationDateFullyCachedForMoreThan24Hours() {
        //      last modified: 105 days ago
        //             served:   5 days ago
    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