Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 2 of 2 for SETTINGS_COMPRESS_DATA (0.28 sec)

  1. okhttp/src/test/java/okhttp3/internal/http2/Http2Test.kt

        }.also { expected ->
          assertThat(expected.message).isEqualTo("PROTOCOL_ERROR: TYPE_DATA streamId == 0")
        }
      }
    
      /** We do not send SETTINGS_COMPRESS_DATA = 1, nor want to. Let's make sure we error.  */
      @Test fun compressedDataFrameWhenSettingDisabled() {
        val expectedData = ByteArray(Http2.INITIAL_MAX_FRAME_SIZE)
        Arrays.fill(expectedData, 2.toByte())
    Registered: Fri Nov 01 11:42:11 UTC 2024
    - Last Modified: Mon Jan 08 01:13:22 UTC 2024
    - 28.1K bytes
    - Viewed (0)
  2. okhttp/src/main/kotlin/okhttp3/internal/http2/Http2Reader.kt

        val inFinished = flags and FLAG_END_STREAM != 0
        val gzipped = flags and FLAG_COMPRESSED != 0
        if (gzipped) {
          throw IOException("PROTOCOL_ERROR: FLAG_COMPRESSED without SETTINGS_COMPRESS_DATA")
        }
    
        val padding = if (flags and FLAG_PADDED != 0) source.readByte() and 0xff else 0
        val dataLength = lengthWithoutPadding(length, flags, padding)
    
    Registered: Fri Nov 01 11:42:11 UTC 2024
    - Last Modified: Mon Jan 08 01:13:22 UTC 2024
    - 19.9K bytes
    - Viewed (0)
Back to top