- Sort Score
- Result 10 results
- Languages All
Results 1 - 4 of 4 for getEnablePush (0.17 sec)
-
okhttp/src/test/java/okhttp3/internal/http2/SettingsTest.kt
val settings = Settings() settings[Settings.HEADER_TABLE_SIZE] = 8096 assertThat(settings.headerTableSize).isEqualTo(8096) assertThat(settings.getEnablePush(true)).isTrue() settings[Settings.ENABLE_PUSH] = 1 assertThat(settings.getEnablePush(false)).isTrue() settings.clear() assertThat(settings.getMaxConcurrentStreams()).isEqualTo(Int.MAX_VALUE) settings[Settings.MAX_CONCURRENT_STREAMS] = 75
Registered: Fri Nov 01 11:42:11 UTC 2024 - Last Modified: Mon Jan 08 01:13:22 UTC 2024 - 2.7K bytes - Viewed (0) -
okhttp/src/main/kotlin/okhttp3/internal/http2/Settings.kt
operator fun get(id: Int): Int = values[id] /** Returns the number of settings that have values assigned. */ fun size(): Int = Integer.bitCount(set) // TODO: honor this setting. fun getEnablePush(defaultValue: Boolean): Boolean { val bit = 1 shl ENABLE_PUSH return if (bit and set != 0) values[ENABLE_PUSH] == 1 else defaultValue } fun getMaxConcurrentStreams(): Int {
Registered: Fri Nov 01 11:42:11 UTC 2024 - Last Modified: Mon Jan 08 01:13:22 UTC 2024 - 3.8K bytes - Viewed (0) -
okhttp/src/test/java/okhttp3/internal/http2/Http2Test.kt
) { // No clearPrevious in HTTP/2. assertThat(clearPrevious).isFalse() assertThat(settings.headerTableSize).isEqualTo(reducedTableSizeBytes) assertThat(settings.getEnablePush(true)).isFalse() } }, ) } @Test fun readSettingsFrameInvalidPushValue() { writeMedium(frame, 6) // 2 for the code and 4 for the value frame.writeByte(Http2.TYPE_SETTINGS)
Registered: Fri Nov 01 11:42:11 UTC 2024 - Last Modified: Mon Jan 08 01:13:22 UTC 2024 - 28.1K bytes - Viewed (0) -
okhttp/src/test/java/okhttp3/internal/http2/Http2ConnectionTest.kt
val connection = connectWithSettings(client, settings) // verify the peer's settings were read and applied. assertThat(connection.peerSettings.getEnablePush(true)).isFalse() } @Test fun peerIncreasesMaxFrameSize() { val newMaxFrameSize = 0x4001 val settings = Settings() settings[Settings.MAX_FRAME_SIZE] = newMaxFrameSize
Registered: Fri Nov 01 11:42:11 UTC 2024 - Last Modified: Sat Apr 20 17:03:43 UTC 2024 - 75.4K bytes - Viewed (0)