Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 2 of 2 for assertForbiddenHeader (0.13 sec)

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

      }
    
      @Test
      fun headerForbidsControlCharacters() {
        assertForbiddenHeader("\u0000")
        assertForbiddenHeader("\r")
        assertForbiddenHeader("\n")
        assertForbiddenHeader("\u001f")
        assertForbiddenHeader("\u007f")
        assertForbiddenHeader("\u0080")
        assertForbiddenHeader("\ud83c\udf69")
      }
    
      private fun assertForbiddenHeader(s: String) {
        val builder = Request.Builder()
    Registered: Fri Nov 01 11:42:11 UTC 2024
    - Last Modified: Mon Jan 08 01:13:22 UTC 2024
    - 10.7K bytes
    - Viewed (0)
  2. okhttp/src/test/java/okhttp3/RequestTest.kt

      }
    
      @Test
      fun headerForbidsControlCharacters() {
        assertForbiddenHeader("\u0000")
        assertForbiddenHeader("\r")
        assertForbiddenHeader("\n")
        assertForbiddenHeader("\u001f")
        assertForbiddenHeader("\u007f")
        assertForbiddenHeader("\u0080")
        assertForbiddenHeader("\ud83c\udf69")
      }
    
      private fun assertForbiddenHeader(s: String) {
        val builder = Request.Builder()
    Registered: Fri Nov 01 11:42:11 UTC 2024
    - Last Modified: Mon Jan 08 01:13:22 UTC 2024
    - 16.4K bytes
    - Viewed (0)
Back to top