Home / Function/ testPassThroughOtherAsClient() — netty Function Reference

testPassThroughOtherAsClient() — netty Function Reference

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

Entity Profile

Dependency Diagram

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

Relationship Graph

Source Code

codec-http2/src/test/java/io/netty/handler/codec/http2/Http2StreamFrameToHttpObjectCodecTest.java lines 910–929

    @Test
    public void testPassThroughOtherAsClient() throws Exception {
        EmbeddedChannel ch = new EmbeddedChannel(new Http2StreamFrameToHttpObjectCodec(false));
        Http2ResetFrame reset = new DefaultHttp2ResetFrame(0);
        Http2GoAwayFrame goaway = new DefaultHttp2GoAwayFrame(0);
        assertTrue(ch.writeInbound(reset));
        assertTrue(ch.writeInbound(goaway.retain()));

        assertEquals(reset, ch.readInbound());

        Http2GoAwayFrame frame = ch.readInbound();
        try {
            assertEquals(goaway, frame);
            assertNull(ch.readInbound());
            assertFalse(ch.finish());
        } finally {
            goaway.release();
            frame.release();
        }
    }

Domain

Subdomains

Frequently Asked Questions

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

Analyze Your Own Codebase

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

Try Supermodel Free