Home / Function/ testDowngradeEndData() — netty Function Reference

testDowngradeEndData() — netty Function Reference

Architecture documentation for the testDowngradeEndData() function in Http2StreamFrameToHttpObjectCodecTest.java from the netty codebase.

Entity Profile

Dependency Diagram

graph TD
  315fb7e1_0e31_5ae6_0633_c72faf66b706["testDowngradeEndData()"]
  f77629dd_309f_f368_8220_46ddc65ad871["Http2StreamFrameToHttpObjectCodecTest"]
  315fb7e1_0e31_5ae6_0633_c72faf66b706 -->|defined in| f77629dd_309f_f368_8220_46ddc65ad871
  style 315fb7e1_0e31_5ae6_0633_c72faf66b706 fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

codec-http2/src/test/java/io/netty/handler/codec/http2/Http2StreamFrameToHttpObjectCodecTest.java lines 393–409

    @Test
    public void testDowngradeEndData() throws Exception {
        EmbeddedChannel ch = new EmbeddedChannel(new Http2StreamFrameToHttpObjectCodec(true));
        ByteBuf hello = Unpooled.copiedBuffer("hello world", CharsetUtil.UTF_8);
        assertTrue(ch.writeInbound(new DefaultHttp2DataFrame(hello, true)));

        LastHttpContent content = ch.readInbound();
        try {
            assertEquals("hello world", content.content().toString(CharsetUtil.UTF_8));
            assertTrue(content.trailingHeaders().isEmpty());
        } finally {
            content.release();
        }

        assertNull(ch.readInbound());
        assertFalse(ch.finish());
    }

Domain

Subdomains

Frequently Asked Questions

What does testDowngradeEndData() do?
testDowngradeEndData() is a function in the netty codebase, defined in codec-http2/src/test/java/io/netty/handler/codec/http2/Http2StreamFrameToHttpObjectCodecTest.java.
Where is testDowngradeEndData() defined?
testDowngradeEndData() is defined in codec-http2/src/test/java/io/netty/handler/codec/http2/Http2StreamFrameToHttpObjectCodecTest.java at line 393.

Analyze Your Own Codebase

Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.

Try Supermodel Free