channelRead() — netty Function Reference
Architecture documentation for the channelRead() function in Http3PushStreamClientValidationHandler.java from the netty codebase.
Entity Profile
Dependency Diagram
graph TD 26de0d78_d988_3b49_545f_9ea9c5a1f05f["channelRead()"] 8b018e79_c943_f15d_ceb0_a3954d4af237["Http3PushStreamClientValidationHandler"] 26de0d78_d988_3b49_545f_9ea9c5a1f05f -->|defined in| 8b018e79_c943_f15d_ceb0_a3954d4af237 style 26de0d78_d988_3b49_545f_9ea9c5a1f05f fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
codec-http3/src/main/java/io/netty/handler/codec/http3/Http3PushStreamClientValidationHandler.java lines 44–71
@Override
void channelRead(ChannelHandlerContext ctx, Http3RequestStreamFrame frame) {
if (frame instanceof Http3PushPromiseFrame) {
ctx.fireChannelRead(frame);
return;
}
if (frame instanceof Http3HeadersFrame) {
Http3HeadersFrame headersFrame = (Http3HeadersFrame) frame;
long maybeContentLength = validateHeaderFrameRead(headersFrame, ctx, decodeState);
if (maybeContentLength >= 0) {
expectedLength = maybeContentLength;
} else if (maybeContentLength == INVALID_FRAME_READ) {
return;
}
}
if (frame instanceof Http3DataFrame) {
final Http3DataFrame dataFrame = (Http3DataFrame) frame;
long maybeContentLength = validateDataFrameRead(dataFrame, ctx, expectedLength, seenLength, false);
if (maybeContentLength >= 0) {
seenLength = maybeContentLength;
} else if (maybeContentLength == INVALID_FRAME_READ) {
return;
}
}
ctx.fireChannelRead(frame);
}
Domain
Subdomains
Defined In
Source
Frequently Asked Questions
What does channelRead() do?
channelRead() is a function in the netty codebase, defined in codec-http3/src/main/java/io/netty/handler/codec/http3/Http3PushStreamClientValidationHandler.java.
Where is channelRead() defined?
channelRead() is defined in codec-http3/src/main/java/io/netty/handler/codec/http3/Http3PushStreamClientValidationHandler.java at line 44.
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free