Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 1 of 1 for wrongMessageDelimiter (0.11 sec)

  1. okhttp/src/test/java/okhttp3/internal/http/StatusLineTest.kt

        assertInvalid("HTTP/1.")
        assertInvalid("HTTP/1.1")
        assertInvalid("HTTP/1.1 ")
        assertInvalid("HTTP/1.1 2")
        assertInvalid("HTTP/1.1 20")
      }
    
      @Test
      fun wrongMessageDelimiter() {
        assertInvalid("HTTP/1.1 200_")
      }
    
      private fun assertInvalid(statusLine: String) {
        assertFailsWith<ProtocolException> {
          parse(statusLine)
        }
      }
    Registered: Fri Nov 01 11:42:11 UTC 2024
    - Last Modified: Mon Jan 08 01:13:22 UTC 2024
    - 3.5K bytes
    - Viewed (0)
Back to top