validateHeaderFrameRead() — netty Function Reference
Architecture documentation for the validateHeaderFrameRead() function in Http3RequestStreamValidationUtils.java from the netty codebase.
Entity Profile
Dependency Diagram
graph TD 3eaadb49_498a_56f2_789a_a3ac7484e3ba["validateHeaderFrameRead()"] 61b512bc_7ad6_0004_be8c_64e50c687fe4["Http3RequestStreamValidationUtils"] 3eaadb49_498a_56f2_789a_a3ac7484e3ba -->|defined in| 61b512bc_7ad6_0004_be8c_64e50c687fe4 09a5f632_93f7_38e3_c250_92f4df323485["headerUnexpected()"] 3eaadb49_498a_56f2_789a_a3ac7484e3ba -->|calls| 09a5f632_93f7_38e3_c250_92f4df323485 style 3eaadb49_498a_56f2_789a_a3ac7484e3ba fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
codec-http3/src/main/java/io/netty/handler/codec/http3/Http3RequestStreamValidationUtils.java lines 72–92
static long validateHeaderFrameRead(Http3HeadersFrame headersFrame, ChannelHandlerContext ctx,
Http3RequestStreamCodecState decodeState) {
if (headersFrame.headers().contains(HttpHeaderNames.CONNECTION)) {
headerUnexpected(ctx, headersFrame, "connection header included");
return INVALID_FRAME_READ;
}
CharSequence value = headersFrame.headers().get(HttpHeaderNames.TE);
if (value != null && !HttpHeaderValues.TRAILERS.equals(value)) {
headerUnexpected(ctx, headersFrame, "te header field included with invalid value: " + value);
return INVALID_FRAME_READ;
}
if (decodeState.receivedFinalHeaders()) {
long length = normalizeAndGetContentLength(
headersFrame.headers().getAll(HttpHeaderNames.CONTENT_LENGTH), false, true);
if (length != CONTENT_LENGTH_NOT_MODIFIED) {
headersFrame.headers().setLong(HttpHeaderNames.CONTENT_LENGTH, length);
}
return length;
}
return CONTENT_LENGTH_NOT_MODIFIED;
}
Domain
Subdomains
Defined In
Calls
Source
Frequently Asked Questions
What does validateHeaderFrameRead() do?
validateHeaderFrameRead() is a function in the netty codebase, defined in codec-http3/src/main/java/io/netty/handler/codec/http3/Http3RequestStreamValidationUtils.java.
Where is validateHeaderFrameRead() defined?
validateHeaderFrameRead() is defined in codec-http3/src/main/java/io/netty/handler/codec/http3/Http3RequestStreamValidationUtils.java at line 72.
What does validateHeaderFrameRead() call?
validateHeaderFrameRead() calls 1 function(s): headerUnexpected.
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free