- Sort Score
- Result 10 results
- Languages All
Results 1 - 2 of 2 for maxOutboundDataLength (0.14 sec)
-
okhttp/src/test/java/okhttp3/internal/http2/MockHttp2Peer.kt
this.client = client writer = Http2Writer(bytesOut, client) } fun acceptFrame() { frameCount++ } /** Maximum length of an outbound data frame. */ fun maxOutboundDataLength(): Int = writer.maxDataLength() /** Count of frames sent or received. */ fun frameCount(): Int = frameCount fun sendFrame(): Http2Writer { outFrames.add(OutFrame(frameCount++, bytesOut.size, false))
Registered: Fri Nov 01 11:42:11 UTC 2024 - Last Modified: Thu Apr 11 22:09:35 UTC 2024 - 8.7K bytes - Viewed (0) -
okhttp/src/test/java/okhttp3/internal/http2/Http2ConnectionTest.kt
assertThat(peer.takeFrame().type).isEqualTo(Http2.TYPE_DATA) assertThat(peer.frameCount()).isEqualTo(5) } @Test fun maxFrameSizeHonored() { val buff = ByteArray(peer.maxOutboundDataLength() + 1) buff.fill('*'.code.toByte()) // Write the mocking script. peer.sendFrame().settings(Settings()) peer.acceptFrame() // ACK peer.acceptFrame() // SYN_STREAM
Registered: Fri Nov 01 11:42:11 UTC 2024 - Last Modified: Sat Apr 20 17:03:43 UTC 2024 - 75.4K bytes - Viewed (0)