Home / Function/ readNotRequiredToEndStream() — netty Function Reference

readNotRequiredToEndStream() — netty Function Reference

Architecture documentation for the readNotRequiredToEndStream() function in Http2MultiplexTest.java from the netty codebase.

Entity Profile

Dependency Diagram

graph TD
  d28efb5a_0d01_d994_577d_f3629f4c47c5["readNotRequiredToEndStream()"]
  4745ff96_ed57_3bd8_9861_4b786d0b6e09["Http2MultiplexTest"]
  d28efb5a_0d01_d994_577d_f3629f4c47c5 -->|defined in| 4745ff96_ed57_3bd8_9861_4b786d0b6e09
  d9ba42a0_bdfd_7d07_88c6_9957d725a683["useUserEventForResetFrame()"]
  d28efb5a_0d01_d994_577d_f3629f4c47c5 -->|calls| d9ba42a0_bdfd_7d07_88c6_9957d725a683
  8df7745b_db2d_ef92_4b30_080373ca9f6d["verifyFramesMultiplexedToCorrectChannel()"]
  d28efb5a_0d01_d994_577d_f3629f4c47c5 -->|calls| 8df7745b_db2d_ef92_4b30_080373ca9f6d
  style d28efb5a_0d01_d994_577d_f3629f4c47c5 fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

codec-http2/src/test/java/io/netty/handler/codec/http2/Http2MultiplexTest.java lines 625–651

    @Test
    public void readNotRequiredToEndStream() {
        LastInboundHandler inboundHandler = new LastInboundHandler();
        AtomicInteger maxReads = new AtomicInteger(1);
        Http2StreamChannel childChannel = newInboundStream(3, false, maxReads, inboundHandler);
        assertTrue(childChannel.config().isAutoRead());

        childChannel.config().setAutoRead(false);

        Http2HeadersFrame headersFrame = inboundHandler.readInbound();
        assertNotNull(headersFrame);

        assertNull(inboundHandler.readInbound());

        frameInboundWriter.writeInboundRstStream(childChannel.stream().id(), NO_ERROR.code());

        assertFalse(inboundHandler.isChannelActive());
        childChannel.closeFuture().syncUninterruptibly();

        Http2ResetFrame resetFrame = useUserEventForResetFrame() ? inboundHandler.<Http2ResetFrame>readUserEvent() :
                inboundHandler.<Http2ResetFrame>readInbound();

        assertEquals(childChannel.stream(), resetFrame.stream());
        assertEquals(NO_ERROR.code(), resetFrame.errorCode());

        verifyFramesMultiplexedToCorrectChannel(childChannel, inboundHandler, 0);
    }

Domain

Subdomains

Frequently Asked Questions

What does readNotRequiredToEndStream() do?
readNotRequiredToEndStream() is a function in the netty codebase, defined in codec-http2/src/test/java/io/netty/handler/codec/http2/Http2MultiplexTest.java.
Where is readNotRequiredToEndStream() defined?
readNotRequiredToEndStream() is defined in codec-http2/src/test/java/io/netty/handler/codec/http2/Http2MultiplexTest.java at line 625.
What does readNotRequiredToEndStream() call?
readNotRequiredToEndStream() calls 2 function(s): useUserEventForResetFrame, verifyFramesMultiplexedToCorrectChannel.

Analyze Your Own Codebase

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

Try Supermodel Free