Home / Function/ testEncodeEmptyEndAsClient() — netty Function Reference

testEncodeEmptyEndAsClient() — netty Function Reference

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

Entity Profile

Dependency Diagram

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

Relationship Graph

Source Code

codec-http2/src/test/java/io/netty/handler/codec/http2/Http2StreamFrameToHttpObjectCodecTest.java lines 612–628

    @Test
    public void testEncodeEmptyEndAsClient() throws Exception {
        EmbeddedChannel ch = new EmbeddedChannel(new Http2StreamFrameToHttpObjectCodec(false));
        LastHttpContent end = LastHttpContent.EMPTY_LAST_CONTENT;
        assertTrue(ch.writeOutbound(end));

        Http2DataFrame emptyFrame = ch.readOutbound();
        try {
            assertEquals(0, emptyFrame.content().readableBytes());
            assertTrue(emptyFrame.isEndStream());
        } finally {
            emptyFrame.release();
        }

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

Domain

Subdomains

Frequently Asked Questions

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

Analyze Your Own Codebase

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

Try Supermodel Free