Home / Function/ contentLengthNotMatchRstStreamWithProtocolError() — netty Function Reference

contentLengthNotMatchRstStreamWithProtocolError() — netty Function Reference

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

Entity Profile

Dependency Diagram

graph TD
  81206c11_f79d_518d_5519_3c92fa635dd0["contentLengthNotMatchRstStreamWithProtocolError()"]
  4745ff96_ed57_3bd8_9861_4b786d0b6e09["Http2MultiplexTest"]
  81206c11_f79d_518d_5519_3c92fa635dd0 -->|defined in| 4745ff96_ed57_3bd8_9861_4b786d0b6e09
  style 81206c11_f79d_518d_5519_3c92fa635dd0 fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

codec-http2/src/test/java/io/netty/handler/codec/http2/Http2MultiplexTest.java lines 482–498

    @Test
    public void contentLengthNotMatchRstStreamWithProtocolError() {
        final LastInboundHandler inboundHandler = new LastInboundHandler();
        request.addLong(HttpHeaderNames.CONTENT_LENGTH, 10);
        Http2StreamChannel channel = newInboundStream(3, false, inboundHandler);
        frameInboundWriter.writeInboundData(3, bb(8), 0, true);
        assertThrows(StreamException.class, new Executable() {
            @Override
            public void execute() throws Throwable {
                inboundHandler.checkException();
            }
        });
        assertNotNull(inboundHandler.readInbound());
        assertFalse(channel.isActive());
        verify(frameWriter).writeRstStream(eqCodecCtx(), eq(3),
                eq(Http2Error.PROTOCOL_ERROR.code()), anyChannelPromise());
    }

Domain

Subdomains

Frequently Asked Questions

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

Analyze Your Own Codebase

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

Try Supermodel Free