tooManyHeadersWithDataThrows() — netty Function Reference
Architecture documentation for the tooManyHeadersWithDataThrows() function in DefaultHttp2ConnectionEncoderTest.java from the netty codebase.
Entity Profile
Dependency Diagram
graph TD dc8562c6_6550_4255_0c99_0a63acd812fb["tooManyHeadersWithDataThrows()"] aef19477_9a1f_48c4_824a_17c7f3ecbb10["DefaultHttp2ConnectionEncoderTest"] dc8562c6_6550_4255_0c99_0a63acd812fb -->|defined in| aef19477_9a1f_48c4_824a_17c7f3ecbb10 e5e91fd4_6777_39ab_c91d_77aa1bdd06da["tooManyHeadersWithDataNoEOSThrows()"] e5e91fd4_6777_39ab_c91d_77aa1bdd06da -->|calls| dc8562c6_6550_4255_0c99_0a63acd812fb ac37c106_2694_d5b5_f466_c7266a58cd26["tooManyHeadersWithDataEOSThrows()"] ac37c106_2694_d5b5_f466_c7266a58cd26 -->|calls| dc8562c6_6550_4255_0c99_0a63acd812fb 28f0aa39_bbbc_f7c5_14c5_1a7106a5f5a4["writeAllFlowControlledFrames()"] dc8562c6_6550_4255_0c99_0a63acd812fb -->|calls| 28f0aa39_bbbc_f7c5_14c5_1a7106a5f5a4 style dc8562c6_6550_4255_0c99_0a63acd812fb fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
codec-http2/src/test/java/io/netty/handler/codec/http2/DefaultHttp2ConnectionEncoderTest.java lines 540–561
private void tooManyHeadersWithDataThrows(boolean eos) {
writeAllFlowControlledFrames();
final int streamId = 6;
ChannelPromise promise = newPromise();
encoder.writeHeaders(ctx, streamId, EmptyHttp2Headers.INSTANCE, 0, false, promise);
Http2Stream stream = connection.stream(streamId);
when(remoteFlow.hasFlowControlled(eq(stream))).thenReturn(true);
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
Defined In
Source
Frequently Asked Questions
What does tooManyHeadersWithDataThrows() do?
tooManyHeadersWithDataThrows() is a function in the netty codebase, defined in codec-http2/src/test/java/io/netty/handler/codec/http2/DefaultHttp2ConnectionEncoderTest.java.
Where is tooManyHeadersWithDataThrows() defined?
tooManyHeadersWithDataThrows() is defined in codec-http2/src/test/java/io/netty/handler/codec/http2/DefaultHttp2ConnectionEncoderTest.java at line 540.
What does tooManyHeadersWithDataThrows() call?
tooManyHeadersWithDataThrows() calls 1 function(s): writeAllFlowControlledFrames.
What calls tooManyHeadersWithDataThrows()?
tooManyHeadersWithDataThrows() is called by 2 function(s): tooManyHeadersWithDataEOSThrows, tooManyHeadersWithDataNoEOSThrows.
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free