Search Options

Display Count
Sort
Preferred Language
Advanced Search

Results 1 - 1 of 1 for largeResponseHeader (0.78 seconds)

  1. okhttp/src/jvmTest/kotlin/okhttp3/CallLimitsTest.kt

        val call = client.newCall(Request(url = server.url("/")))
        assertFailsWith<IOException> {
          call.execute()
        }
      }
    
      /** Use a header that exceeds the limits on its own. */
      @Test
      fun largeResponseHeader() {
        server.enqueue(
          MockResponse
            .Builder()
            .addHeader("Set-Cookie", "a=${"A".repeat(256 * 1024)}")
            .body("I'm not even supposed to be here today.")
            .build(),
        )
    Created: Fri Apr 03 11:42:14 GMT 2026
    - Last Modified: Sun Mar 15 09:02:18 GMT 2026
    - 3.5K bytes
    - Click Count (0)
Back to Top