serverShouldNeverSend431IfHeadersAlreadySent() — netty Function Reference
Architecture documentation for the serverShouldNeverSend431IfHeadersAlreadySent() function in Http2ConnectionHandlerTest.java from the netty codebase.
Entity Profile
Dependency Diagram
graph TD 15313122_42bc_8965_88e9_2e30de6123c8["serverShouldNeverSend431IfHeadersAlreadySent()"] e8b32c7d_fa9d_422b_0744_82047ac00ea5["Http2ConnectionHandlerTest"] 15313122_42bc_8965_88e9_2e30de6123c8 -->|defined in| e8b32c7d_fa9d_422b_0744_82047ac00ea5 style 15313122_42bc_8965_88e9_2e30de6123c8 fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
codec-http2/src/test/java/io/netty/handler/codec/http2/Http2ConnectionHandlerTest.java lines 511–530
@Test
public void serverShouldNeverSend431IfHeadersAlreadySent() 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(true);
when(stream.isHeadersSent()).thenReturn(true);
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 serverShouldNeverSend431IfHeadersAlreadySent() do?
serverShouldNeverSend431IfHeadersAlreadySent() is a function in the netty codebase, defined in codec-http2/src/test/java/io/netty/handler/codec/http2/Http2ConnectionHandlerTest.java.
Where is serverShouldNeverSend431IfHeadersAlreadySent() defined?
serverShouldNeverSend431IfHeadersAlreadySent() is defined in codec-http2/src/test/java/io/netty/handler/codec/http2/Http2ConnectionHandlerTest.java at line 511.
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free