testDowngradeData() — netty Function Reference
Architecture documentation for the testDowngradeData() function in Http2StreamFrameToHttpObjectCodecTest.java from the netty codebase.
Entity Profile
Dependency Diagram
graph TD 82bb9c31_30fa_2ca3_8dcd_45ef1e0bad04["testDowngradeData()"] f77629dd_309f_f368_8220_46ddc65ad871["Http2StreamFrameToHttpObjectCodecTest"] 82bb9c31_30fa_2ca3_8dcd_45ef1e0bad04 -->|defined in| f77629dd_309f_f368_8220_46ddc65ad871 style 82bb9c31_30fa_2ca3_8dcd_45ef1e0bad04 fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
codec-http2/src/test/java/io/netty/handler/codec/http2/Http2StreamFrameToHttpObjectCodecTest.java lines 375–391
@Test
public void testDowngradeData() throws Exception {
EmbeddedChannel ch = new EmbeddedChannel(new Http2StreamFrameToHttpObjectCodec(true));
ByteBuf hello = Unpooled.copiedBuffer("hello world", CharsetUtil.UTF_8);
assertTrue(ch.writeInbound(new DefaultHttp2DataFrame(hello)));
HttpContent content = ch.readInbound();
try {
assertEquals("hello world", content.content().toString(CharsetUtil.UTF_8));
assertFalse(content instanceof LastHttpContent);
} finally {
content.release();
}
assertNull(ch.readInbound());
assertFalse(ch.finish());
}
Domain
Subdomains
Defined In
Source
Frequently Asked Questions
What does testDowngradeData() do?
testDowngradeData() is a function in the netty codebase, defined in codec-http2/src/test/java/io/netty/handler/codec/http2/Http2StreamFrameToHttpObjectCodecTest.java.
Where is testDowngradeData() defined?
testDowngradeData() is defined in codec-http2/src/test/java/io/netty/handler/codec/http2/Http2StreamFrameToHttpObjectCodecTest.java at line 375.
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free