Home / Function/ headersThatAreTooBigShouldFail() — netty Function Reference

headersThatAreTooBigShouldFail() — netty Function Reference

Architecture documentation for the headersThatAreTooBigShouldFail() function in Http2FrameRoundtripTest.java from the netty codebase.

Entity Profile

Dependency Diagram

graph TD
  0e978380_6aeb_eef7_e262_3076de9bf0f2["headersThatAreTooBigShouldFail()"]
  900e14d5_99d5_0a22_aeb4_72af4ffe3fca["Http2FrameRoundtripTest"]
  0e978380_6aeb_eef7_e262_3076de9bf0f2 -->|defined in| 900e14d5_99d5_0a22_aeb4_72af4ffe3fca
  2ccb6e24_01de_9d82_8893_0e095430f4da["readFrames()"]
  0e978380_6aeb_eef7_e262_3076de9bf0f2 -->|calls| 2ccb6e24_01de_9d82_8893_0e095430f4da
  style 0e978380_6aeb_eef7_e262_3076de9bf0f2 fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

codec-http2/src/test/java/io/netty/handler/codec/http2/Http2FrameRoundtripTest.java lines 283–299

    @Test
    public void headersThatAreTooBigShouldFail() throws Exception {
        reader = new DefaultHttp2FrameReader(false);
        final int maxListSize = 100;
        reader.configuration().headersConfiguration().maxHeaderListSize(maxListSize, maxListSize);
        final Http2Headers headers = headersOfSize(maxListSize + 1);
        writer.writeHeaders(ctx, STREAM_ID, headers, 2, (short) 3, true, MAX_PADDING, true, ctx.newPromise());
        assertThrows(Http2Exception.class, new Executable() {
            @Override
            public void execute() throws Throwable {
                readFrames();
            }
        });
        verify(listener, never()).onHeadersRead(any(ChannelHandlerContext.class), anyInt(),
                any(Http2Headers.class), anyInt(), anyShort(), anyBoolean(), anyInt(),
                anyBoolean());
    }

Domain

Subdomains

Calls

Frequently Asked Questions

What does headersThatAreTooBigShouldFail() do?
headersThatAreTooBigShouldFail() is a function in the netty codebase, defined in codec-http2/src/test/java/io/netty/handler/codec/http2/Http2FrameRoundtripTest.java.
Where is headersThatAreTooBigShouldFail() defined?
headersThatAreTooBigShouldFail() is defined in codec-http2/src/test/java/io/netty/handler/codec/http2/Http2FrameRoundtripTest.java at line 283.
What does headersThatAreTooBigShouldFail() call?
headersThatAreTooBigShouldFail() calls 1 function(s): readFrames.

Analyze Your Own Codebase

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

Try Supermodel Free