onHeadersRead() — netty Function Reference
Architecture documentation for the onHeadersRead() function in HelloWorldHttp2Handler.java from the netty codebase.
Entity Profile
Dependency Diagram
graph TD 9ffbc081_b11c_edec_7761_cee3b226f84a["onHeadersRead()"] c8a162e3_eede_4376_b493_eb1ed405d206["HelloWorldHttp2Handler"] 9ffbc081_b11c_edec_7761_cee3b226f84a -->|defined in| c8a162e3_eede_4376_b493_eb1ed405d206 3e6fdf00_5772_8ac0_c003_2d5abd586226["channelRead()"] 3e6fdf00_5772_8ac0_c003_2d5abd586226 -->|calls| 9ffbc081_b11c_edec_7761_cee3b226f84a 585bb4b9_901b_e7dd_4a7b_0410fd16cb04["sendResponse()"] 9ffbc081_b11c_edec_7761_cee3b226f84a -->|calls| 585bb4b9_901b_e7dd_4a7b_0410fd16cb04 style 9ffbc081_b11c_edec_7761_cee3b226f84a fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
example/src/main/java/io/netty/example/http2/helloworld/multiplex/server/HelloWorldHttp2Handler.java lines 81–89
private static void onHeadersRead(ChannelHandlerContext ctx, Http2HeadersFrame headers)
throws Exception {
if (headers.isEndStream()) {
ByteBuf content = ctx.alloc().buffer();
content.writeBytes(RESPONSE_BYTES.duplicate());
ByteBufUtil.writeAscii(content, " - via HTTP/2");
sendResponse(ctx, content);
}
}
Domain
Subdomains
Defined In
Calls
Called By
Source
Frequently Asked Questions
What does onHeadersRead() do?
onHeadersRead() is a function in the netty codebase, defined in example/src/main/java/io/netty/example/http2/helloworld/multiplex/server/HelloWorldHttp2Handler.java.
Where is onHeadersRead() defined?
onHeadersRead() is defined in example/src/main/java/io/netty/example/http2/helloworld/multiplex/server/HelloWorldHttp2Handler.java at line 81.
What does onHeadersRead() call?
onHeadersRead() calls 1 function(s): sendResponse.
What calls onHeadersRead()?
onHeadersRead() is called by 1 function(s): channelRead.
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free