Home / Function/ invalidPayloadLength() — netty Function Reference

invalidPayloadLength() — netty Function Reference

Architecture documentation for the invalidPayloadLength() function in Http2FrameCodecTest.java from the netty codebase.

Entity Profile

Dependency Diagram

graph TD
  258ea4e1_1fa7_6e19_ee6c_4fe8e0901ef8["invalidPayloadLength()"]
  71f17950_8fc4_c3e9_2e13_384d1ac7ea2c["Http2FrameCodecTest"]
  258ea4e1_1fa7_6e19_ee6c_4fe8e0901ef8 -->|defined in| 71f17950_8fc4_c3e9_2e13_384d1ac7ea2c
  style 258ea4e1_1fa7_6e19_ee6c_4fe8e0901ef8 fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

codec-http2/src/test/java/io/netty/handler/codec/http2/Http2FrameCodecTest.java lines 1009–1026

    @Test
    public void invalidPayloadLength() throws Exception {
        frameInboundWriter.writeInboundSettings(new Http2Settings());
        channel.writeInbound(Unpooled.wrappedBuffer(new byte[]{
                0, 0, 4, // length
                0, // type: DATA
                9, // flags: PADDED, END_STREAM
                1, 0, 0, 0, // stream id
                4, // pad length
                0, 0, 0 // not enough space for padding
        }));
        assertThrows(Http2Exception.class, new Executable() {
            @Override
            public void execute() throws Throwable {
                inboundHandler.checkException();
            }
        });
    }

Domain

Subdomains

Frequently Asked Questions

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

Analyze Your Own Codebase

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

Try Supermodel Free