channelRead0() — netty Function Reference
Architecture documentation for the channelRead0() function in FallbackRequestHandler.java from the netty codebase.
Entity Profile
Dependency Diagram
graph TD 274c523f_6ef9_7fdf_7bd1_ff3ec6b9217f["channelRead0()"] 33d8529e_f312_f6bb_4ff0_d633c241627c["FallbackRequestHandler"] 274c523f_6ef9_7fdf_7bd1_ff3ec6b9217f -->|defined in| 33d8529e_f312_f6bb_4ff0_d633c241627c style 274c523f_6ef9_7fdf_7bd1_ff3ec6b9217f fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
example/src/main/java/io/netty/example/http2/tiles/FallbackRequestHandler.java lines 48–62
@Override
protected void channelRead0(ChannelHandlerContext ctx, HttpRequest req) throws Exception {
if (HttpUtil.is100ContinueExpected(req)) {
ctx.write(new DefaultFullHttpResponse(HTTP_1_1, CONTINUE, EMPTY_BUFFER));
}
ByteBuf content = ctx.alloc().buffer();
content.writeBytes(response.duplicate());
FullHttpResponse response = new DefaultFullHttpResponse(HTTP_1_1, OK, content);
response.headers().set(CONTENT_TYPE, "text/html; charset=UTF-8");
response.headers().setInt(CONTENT_LENGTH, response.content().readableBytes());
ctx.write(response).addListener(ChannelFutureListener.CLOSE);
}
Domain
Subdomains
Source
Frequently Asked Questions
What does channelRead0() do?
channelRead0() is a function in the netty codebase, defined in example/src/main/java/io/netty/example/http2/tiles/FallbackRequestHandler.java.
Where is channelRead0() defined?
channelRead0() is defined in example/src/main/java/io/netty/example/http2/tiles/FallbackRequestHandler.java at line 48.
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free