failedHeadersValidationThrowsConnectionError() — netty Function Reference
Architecture documentation for the failedHeadersValidationThrowsConnectionError() function in DefaultHttp2FrameReaderTest.java from the netty codebase.
Entity Profile
Dependency Diagram
graph TD 0ba8343d_d6f0_62d7_939a_ce435409b2e2["failedHeadersValidationThrowsConnectionError()"] 66b2f0cc_bce5_f8e1_a7ee_93cd2a101951["DefaultHttp2FrameReaderTest"] 0ba8343d_d6f0_62d7_939a_ce435409b2e2 -->|defined in| 66b2f0cc_bce5_f8e1_a7ee_93cd2a101951 style 0ba8343d_d6f0_62d7_939a_ce435409b2e2 fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
codec-http2/src/test/java/io/netty/handler/codec/http2/DefaultHttp2FrameReaderTest.java lines 227–244
@Test
public void failedHeadersValidationThrowsConnectionError() throws Http2Exception {
final ByteBuf input = Unpooled.buffer();
try {
// Because we have padding we need at least 1 byte in the payload to specify the padding length.
writeFrameHeader(input, 0, HEADERS, new Http2Flags().paddingPresent(true), 1);
Http2Exception ex = assertThrows(Http2Exception.class, new Executable() {
@Override
public void execute() throws Throwable {
frameReader.readFrame(ctx, input, listener);
}
});
assertFalse(ex instanceof Http2Exception.StreamException);
assertEquals(Http2Error.FRAME_SIZE_ERROR, ex.error());
} finally {
input.release();
}
}
Domain
Subdomains
Source
Frequently Asked Questions
What does failedHeadersValidationThrowsConnectionError() do?
failedHeadersValidationThrowsConnectionError() is a function in the netty codebase, defined in codec-http2/src/test/java/io/netty/handler/codec/http2/DefaultHttp2FrameReaderTest.java.
Where is failedHeadersValidationThrowsConnectionError() defined?
failedHeadersValidationThrowsConnectionError() is defined in codec-http2/src/test/java/io/netty/handler/codec/http2/DefaultHttp2FrameReaderTest.java at line 227.
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free