Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 2 of 2 for unexpectedValue (0.3 sec)

  1. okhttp/src/test/java/okhttp3/internal/ws/WebSocketExtensionsTest.kt

        assertThat(parse("permessage-deflate; unknown_parameter=15; unknown_parameter=15"))
          .isEqualTo(WebSocketExtensions(perMessageDeflate = true, unknownValues = true))
      }
    
      @Test
      fun unexpectedValue() {
        assertThat(parse("permessage-deflate; client_no_context_takeover=true"))
          .isEqualTo(
            WebSocketExtensions(
              perMessageDeflate = true,
              clientNoContextTakeover = true,
    Registered: Fri Nov 01 11:42:11 UTC 2024
    - Last Modified: Mon Jan 08 01:13:22 UTC 2024
    - 8.3K bytes
    - Viewed (0)
  2. okhttp/src/main/kotlin/okhttp3/internal/ws/WebSocketExtensions.kt

                        clientMaxWindowBits = value?.toIntOrNull()
                        if (clientMaxWindowBits == null) unexpectedValues = true // Not an int!
                      }
                      name.equals("client_no_context_takeover", ignoreCase = true) -> {
                        if (clientNoContextTakeover) unexpectedValues = true // Repeated parameter!
    Registered: Fri Nov 01 11:42:11 UTC 2024
    - Last Modified: Mon Jan 08 01:13:22 UTC 2024
    - 8.1K bytes
    - Viewed (0)
Back to top