Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 3 of 3 for addHeaderLenient (0.15 sec)

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

            .addHeader("Cache-Control: max-age=0")
            .addHeaderLenient("Alpha", "α")
            .addHeaderLenient("β", "Beta")
            .body("abcd")
            .build(),
        )
        server.enqueue(
          MockResponse.Builder()
            .addHeader("Transfer-Encoding: none")
            .addHeaderLenient("Gamma", "Γ")
            .addHeaderLenient("Δ", "Delta")
            .code(HttpURLConnection.HTTP_NOT_MODIFIED)
    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

      }
    
      @Test
      fun responseHeaderParsingIsLenient() {
        val headersBuilder = Headers.Builder()
        headersBuilder.add("Content-Length", "0")
        addHeaderLenient(headersBuilder, "a\tb: c\u007fd")
        addHeaderLenient(headersBuilder, ": ef")
        addHeaderLenient(headersBuilder, "\ud83c\udf69: \u2615\ufe0f")
        val headers = headersBuilder.build()
        server.enqueue(MockResponse(headers = headers))
    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

      @Test
      fun responseHeaderParsingIsLenient() {
        val headersBuilder = Headers.Builder()
        headersBuilder.add("Content-Length", "0")
        addHeaderLenient(headersBuilder, "a\tb: c\u007fd")
        addHeaderLenient(headersBuilder, ": ef")
        addHeaderLenient(headersBuilder, "\ud83c\udf69: \u2615\ufe0f")
        val headers = headersBuilder.build()
        server.enqueue(MockResponse(headers = headers))
    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