Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 3 of 3 for addHeader (0.06 sec)

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

          MockResponse.Builder()
            .addHeader("Etag", "a")
            .addHeader("Cache-Control: max-age=0")
            .addHeader("A: a1")
            .addHeader("B: b2")
            .addHeader("B: b3")
            .body("abcd")
            .build(),
        )
        server.enqueue(
          MockResponse.Builder()
            .code(HttpURLConnection.HTTP_NOT_MODIFIED)
            .addHeader("B: b4")
            .addHeader("B: b5")
    Registered: Fri Nov 01 11:42:11 UTC 2024
    - Last Modified: Wed Apr 10 19:46:48 UTC 2024
    - 108.6K bytes
    - Viewed (0)
  2. okhttp/src/test/java/okhttp3/URLConnectionTest.kt

            .status("ICY 200 OK")
            .addHeader("Accept-Ranges: none")
            .addHeader("Content-Type: audio/mpeg")
            .addHeader("icy-br:128")
            .addHeader("ice-audio-info: bitrate=128;samplerate=44100;channels=2")
            .addHeader("icy-br:128")
            .addHeader("icy-description:Rock")
            .addHeader("icy-genre:riders")
            .addHeader("icy-name:A2RRock")
            .addHeader("icy-pub:1")
    Registered: Fri Nov 01 11:42:11 UTC 2024
    - Last Modified: Sat Jan 20 10:30:28 UTC 2024
    - 131.7K bytes
    - Viewed (0)
  3. okhttp/src/test/java/okhttp3/CallTest.kt

        fileSystem.checkNoOpenFiles()
      }
    
      @Test
      fun get() {
        server.enqueue(
          MockResponse.Builder()
            .body("abc")
            .clearHeaders()
            .addHeader("content-type: text/plain")
            .addHeader("content-length", "3")
            .build(),
        )
        val sentAt = System.currentTimeMillis()
        val recordedResponse = executeSynchronously("/", "User-Agent", "SyncApiTest")
    Registered: Fri Nov 01 11:42:11 UTC 2024
    - Last Modified: Wed Apr 10 19:46:48 UTC 2024
    - 142.5K bytes
    - Viewed (0)
Back to top