clientShouldNeverSend431WhenHeadersAreTooLarge() — netty Function Reference
Architecture documentation for the clientShouldNeverSend431WhenHeadersAreTooLarge() function in Http2ConnectionHandlerTest.java from the netty codebase.
Entity Profile
Dependency Diagram
graph TD 6abf87c1_0489_5791_6a95_12049cf1db71["clientShouldNeverSend431WhenHeadersAreTooLarge()"] e8b32c7d_fa9d_422b_0744_82047ac00ea5["Http2ConnectionHandlerTest"] 6abf87c1_0489_5791_6a95_12049cf1db71 -->|defined in| e8b32c7d_fa9d_422b_0744_82047ac00ea5 style 6abf87c1_0489_5791_6a95_12049cf1db71 fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
codec-http2/src/test/java/io/netty/handler/codec/http2/Http2ConnectionHandlerTest.java lines 475–494
@Test
public void clientShouldNeverSend431WhenHeadersAreTooLarge() throws Exception {
int padding = 0;
handler = newHandler();
Http2Exception e = new Http2Exception.HeaderListSizeException(STREAM_ID, PROTOCOL_ERROR,
"Header size exceeded max allowed size 8196", true);
when(stream.id()).thenReturn(STREAM_ID);
when(connection.isServer()).thenReturn(false);
when(stream.isHeadersSent()).thenReturn(false);
when(remote.lastStreamCreated()).thenReturn(STREAM_ID);
when(encoder.writeRstStream(eq(ctx), eq(STREAM_ID),
eq(PROTOCOL_ERROR.code()), eq(promise))).thenReturn(future);
handler.exceptionCaught(ctx, e);
verify(encoder, never()).writeHeaders(eq(ctx), eq(STREAM_ID),
any(Http2Headers.class), eq(padding), eq(true), eq(promise));
verify(encoder).writeRstStream(ctx, STREAM_ID, PROTOCOL_ERROR.code(), promise);
}
Domain
Subdomains
Source
Frequently Asked Questions
What does clientShouldNeverSend431WhenHeadersAreTooLarge() do?
clientShouldNeverSend431WhenHeadersAreTooLarge() is a function in the netty codebase, defined in codec-http2/src/test/java/io/netty/handler/codec/http2/Http2ConnectionHandlerTest.java.
Where is clientShouldNeverSend431WhenHeadersAreTooLarge() defined?
clientShouldNeverSend431WhenHeadersAreTooLarge() is defined in codec-http2/src/test/java/io/netty/handler/codec/http2/Http2ConnectionHandlerTest.java at line 475.
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free