- Sort Score
- Num 10 results
- Language All
Results 1 - 3 of 3 for getEnablePush (0.49 seconds)
The search processing time has exceeded the limit. The displayed results may be partial.
-
okhttp/src/commonJvmAndroid/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 {
Created: Fri Apr 03 11:42:14 GMT 2026 - Last Modified: Fri Dec 27 13:39:56 GMT 2024 - 3.8K bytes - Click Count (0) -
okhttp/src/jvmTest/kotlin/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)Created: Fri Apr 03 11:42:14 GMT 2026 - Last Modified: Wed Mar 19 19:25:20 GMT 2025 - 28.1K bytes - Click Count (0) -
okhttp/src/jvmTest/kotlin/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
Created: Fri Apr 03 11:42:14 GMT 2026 - Last Modified: Thu Jul 31 04:18:40 GMT 2025 - 75.5K bytes - Click Count (0)