Home / Function/ tooManyHeadersThrows() — netty Function Reference

tooManyHeadersThrows() — netty Function Reference

Architecture documentation for the tooManyHeadersThrows() function in DefaultHttp2ConnectionEncoderTest.java from the netty codebase.

Function java Buffer Allocators calls 1 called by 2

Entity Profile

Dependency Diagram

graph TD
  10f076b5_0957_bddc_049e_01eae2aac075["tooManyHeadersThrows()"]
  aef19477_9a1f_48c4_824a_17c7f3ecbb10["DefaultHttp2ConnectionEncoderTest"]
  10f076b5_0957_bddc_049e_01eae2aac075 -->|defined in| aef19477_9a1f_48c4_824a_17c7f3ecbb10
  a1cd219f_78b8_9cb5_700e_c715ffbe20a8["tooManyHeadersNoEOSThrows()"]
  a1cd219f_78b8_9cb5_700e_c715ffbe20a8 -->|calls| 10f076b5_0957_bddc_049e_01eae2aac075
  3d66da32_7d9d_333a_c80c_6ef2c98639c0["tooManyHeadersEOSThrows()"]
  3d66da32_7d9d_333a_c80c_6ef2c98639c0 -->|calls| 10f076b5_0957_bddc_049e_01eae2aac075
  28f0aa39_bbbc_f7c5_14c5_1a7106a5f5a4["writeAllFlowControlledFrames()"]
  10f076b5_0957_bddc_049e_01eae2aac075 -->|calls| 28f0aa39_bbbc_f7c5_14c5_1a7106a5f5a4
  style 10f076b5_0957_bddc_049e_01eae2aac075 fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

codec-http2/src/test/java/io/netty/handler/codec/http2/DefaultHttp2ConnectionEncoderTest.java lines 460–477

    private void tooManyHeadersThrows(boolean eos) {
        writeAllFlowControlledFrames();
        final int streamId = 6;
        ChannelPromise promise = newPromise();
        encoder.writeHeaders(ctx, streamId, EmptyHttp2Headers.INSTANCE, 0, false, promise);
        ChannelPromise promise2 = newPromise();
        encoder.writeHeaders(ctx, streamId, EmptyHttp2Headers.INSTANCE, 0, true, promise2);

        ChannelPromise promise3 = newPromise();
        ChannelFuture future = encoder.writeHeaders(ctx, streamId, EmptyHttp2Headers.INSTANCE, 0, eos, promise3);
        assertTrue(future.isDone());
        assertFalse(future.isSuccess());

        verify(writer, times(1)).writeHeaders(eq(ctx), eq(streamId), eq(EmptyHttp2Headers.INSTANCE),
                eq(0), eq(false), eq(promise));
        verify(writer, times(1)).writeHeaders(eq(ctx), eq(streamId), eq(EmptyHttp2Headers.INSTANCE),
                eq(0), eq(true), eq(promise2));
    }

Domain

Subdomains

Frequently Asked Questions

What does tooManyHeadersThrows() do?
tooManyHeadersThrows() is a function in the netty codebase, defined in codec-http2/src/test/java/io/netty/handler/codec/http2/DefaultHttp2ConnectionEncoderTest.java.
Where is tooManyHeadersThrows() defined?
tooManyHeadersThrows() is defined in codec-http2/src/test/java/io/netty/handler/codec/http2/DefaultHttp2ConnectionEncoderTest.java at line 460.
What does tooManyHeadersThrows() call?
tooManyHeadersThrows() calls 1 function(s): writeAllFlowControlledFrames.
What calls tooManyHeadersThrows()?
tooManyHeadersThrows() is called by 2 function(s): tooManyHeadersEOSThrows, tooManyHeadersNoEOSThrows.

Analyze Your Own Codebase

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

Try Supermodel Free