windowUpdateFrameDecrementsConsumedBytes() — netty Function Reference
Architecture documentation for the windowUpdateFrameDecrementsConsumedBytes() function in Http2FrameCodecTest.java from the netty codebase.
Entity Profile
Dependency Diagram
graph TD 7895b266_8911_3899_f1f9_898ac6bf8397["windowUpdateFrameDecrementsConsumedBytes()"] 71f17950_8fc4_c3e9_2e13_384d1ac7ea2c["Http2FrameCodecTest"] 7895b266_8911_3899_f1f9_898ac6bf8397 -->|defined in| 71f17950_8fc4_c3e9_2e13_384d1ac7ea2c style 7895b266_8911_3899_f1f9_898ac6bf8397 fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
codec-http2/src/test/java/io/netty/handler/codec/http2/Http2FrameCodecTest.java lines 534–556
@Test
public void windowUpdateFrameDecrementsConsumedBytes() throws Exception {
frameInboundWriter.writeInboundHeaders(3, request, 31, false);
Http2Connection connection = frameCodec.connection();
Http2Stream stream = connection.stream(3);
assertNotNull(stream);
ByteBuf data = Unpooled.buffer(100).writeZero(100);
frameInboundWriter.writeInboundData(3, data, 0, false);
Http2HeadersFrame inboundHeaders = inboundHandler.readInbound();
assertNotNull(inboundHeaders);
assertNotNull(inboundHeaders.stream());
Http2FrameStream stream2 = inboundHeaders.stream();
int before = connection.local().flowController().unconsumedBytes(stream);
ChannelFuture f = channel.write(new DefaultHttp2WindowUpdateFrame(100).stream(stream2));
int after = connection.local().flowController().unconsumedBytes(stream);
assertEquals(100, before - after);
assertTrue(f.isSuccess());
}
Domain
Subdomains
Source
Frequently Asked Questions
What does windowUpdateFrameDecrementsConsumedBytes() do?
windowUpdateFrameDecrementsConsumedBytes() is a function in the netty codebase, defined in codec-http2/src/test/java/io/netty/handler/codec/http2/Http2FrameCodecTest.java.
Where is windowUpdateFrameDecrementsConsumedBytes() defined?
windowUpdateFrameDecrementsConsumedBytes() is defined in codec-http2/src/test/java/io/netty/handler/codec/http2/Http2FrameCodecTest.java at line 534.
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free