Home / Function/ headersContentLength() — netty Function Reference

headersContentLength() — netty Function Reference

Architecture documentation for the headersContentLength() function in DefaultHttp2ConnectionDecoderTest.java from the netty codebase.

Entity Profile

Dependency Diagram

graph TD
  d9aa5d7b_39db_43fe_4341_3be82beaa163["headersContentLength()"]
  7c0b580c_3a1b_cdb3_bf02_2ffea3bbdffc["DefaultHttp2ConnectionDecoderTest"]
  d9aa5d7b_39db_43fe_4341_3be82beaa163 -->|defined in| 7c0b580c_3a1b_cdb3_bf02_2ffea3bbdffc
  7d76daa4_bc15_985b_8a6b_3e4ae9d6b3af["headersContentLengthMissmatch()"]
  7d76daa4_bc15_985b_8a6b_3e4ae9d6b3af -->|calls| d9aa5d7b_39db_43fe_4341_3be82beaa163
  2c08bbb7_82a7_ace5_960b_19632366d6d9["headersContentLengthInvalid()"]
  2c08bbb7_82a7_ace5_960b_19632366d6d9 -->|calls| d9aa5d7b_39db_43fe_4341_3be82beaa163
  style d9aa5d7b_39db_43fe_4341_3be82beaa163 fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

codec-http2/src/test/java/io/netty/handler/codec/http2/DefaultHttp2ConnectionDecoderTest.java lines 979–993

    private void headersContentLength(final boolean negative) throws Exception {
        final int padding = 10;
        when(connection.isServer()).thenReturn(true);
        assertThrows(Http2Exception.StreamException.class, new Executable() {
            @Override
            public void execute() throws Throwable {
                decode().onHeadersRead(ctx, STREAM_ID, new DefaultHttp2Headers()
                        .setLong(HttpHeaderNames.CONTENT_LENGTH, negative ? -1L : 1L), padding, true);
            }
        });

        // Verify that the event was absorbed and not propagated to the observer.
        verify(listener, never()).onHeadersRead(eq(ctx), anyInt(),
                any(Http2Headers.class), anyInt(), anyShort(), anyBoolean(), anyInt(), anyBoolean());
    }

Domain

Subdomains

Frequently Asked Questions

What does headersContentLength() do?
headersContentLength() is a function in the netty codebase, defined in codec-http2/src/test/java/io/netty/handler/codec/http2/DefaultHttp2ConnectionDecoderTest.java.
Where is headersContentLength() defined?
headersContentLength() is defined in codec-http2/src/test/java/io/netty/handler/codec/http2/DefaultHttp2ConnectionDecoderTest.java at line 979.
What calls headersContentLength()?
headersContentLength() is called by 2 function(s): headersContentLengthInvalid, headersContentLengthMissmatch.

Analyze Your Own Codebase

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

Try Supermodel Free