handlePage() — netty Function Reference
Architecture documentation for the handlePage() function in Http2RequestHandler.java from the netty codebase.
Entity Profile
Dependency Diagram
graph TD 58398d89_f8bb_fe40_4ff8_975ce680b5c4["handlePage()"] 0c1aeb28_a194_4c7d_9730_36d1126b321b["Http2RequestHandler"] 58398d89_f8bb_fe40_4ff8_975ce680b5c4 -->|defined in| 0c1aeb28_a194_4c7d_9730_36d1126b321b 738c7b3e_7255_a9ac_d890_2af909b9ba80["channelRead0()"] 738c7b3e_7255_a9ac_d890_2af909b9ba80 -->|calls| 58398d89_f8bb_fe40_4ff8_975ce680b5c4 9e0fc724_23e1_aeee_41a6_2092a463b22e["sendResponse()"] 58398d89_f8bb_fe40_4ff8_975ce680b5c4 -->|calls| 9e0fc724_23e1_aeee_41a6_2092a463b22e style 58398d89_f8bb_fe40_4ff8_975ce680b5c4 fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
example/src/main/java/io/netty/example/http2/tiles/Http2RequestHandler.java lines 86–95
private void handlePage(ChannelHandlerContext ctx, String streamId, int latency, FullHttpRequest request) {
byte[] body = Html.body(latency);
ByteBuf content = ctx.alloc().buffer(Html.HEADER.length + body.length + Html.FOOTER.length);
content.writeBytes(Html.HEADER);
content.writeBytes(body);
content.writeBytes(Html.FOOTER);
FullHttpResponse response = new DefaultFullHttpResponse(HTTP_1_1, OK, content);
response.headers().set(CONTENT_TYPE, "text/html; charset=UTF-8");
sendResponse(ctx, streamId, latency, response, request);
}
Domain
Subdomains
Calls
Called By
Source
Frequently Asked Questions
What does handlePage() do?
handlePage() is a function in the netty codebase, defined in example/src/main/java/io/netty/example/http2/tiles/Http2RequestHandler.java.
Where is handlePage() defined?
handlePage() is defined in example/src/main/java/io/netty/example/http2/tiles/Http2RequestHandler.java at line 86.
What does handlePage() call?
handlePage() calls 1 function(s): sendResponse.
What calls handlePage()?
handlePage() is called by 1 function(s): channelRead0.
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free