Home / Function/ onHeadersRead() — netty Function Reference

onHeadersRead() — netty Function Reference

Architecture documentation for the onHeadersRead() function in HelloWorldHttp2Handler.java from the netty codebase.

Function java Buffer Search calls 1 called by 1

Entity Profile

Dependency Diagram

graph TD
  e042b45a_8425_005c_5b9c_9970568a3fe5["onHeadersRead()"]
  679cb2c0_10f0_ca95_5e26_6209ae084a9f["HelloWorldHttp2Handler"]
  e042b45a_8425_005c_5b9c_9970568a3fe5 -->|defined in| 679cb2c0_10f0_ca95_5e26_6209ae084a9f
  d33a3241_5ef6_9a5c_3d1e_663abb2f1a1e["userEventTriggered()"]
  d33a3241_5ef6_9a5c_3d1e_663abb2f1a1e -->|calls| e042b45a_8425_005c_5b9c_9970568a3fe5
  133bb4fc_5955_8367_566e_0a5a5e4eeeae["sendResponse()"]
  e042b45a_8425_005c_5b9c_9970568a3fe5 -->|calls| 133bb4fc_5955_8367_566e_0a5a5e4eeeae
  style e042b45a_8425_005c_5b9c_9970568a3fe5 fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

example/src/main/java/io/netty/example/http2/helloworld/server/HelloWorldHttp2Handler.java lines 107–116

    @Override
    public void onHeadersRead(ChannelHandlerContext ctx, int streamId,
                              Http2Headers headers, int padding, boolean endOfStream) {
        if (endOfStream) {
            ByteBuf content = ctx.alloc().buffer();
            content.writeBytes(RESPONSE_BYTES.duplicate());
            ByteBufUtil.writeAscii(content, " - via HTTP/2");
            sendResponse(ctx, streamId, content);
        }
    }

Domain

Subdomains

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/server/HelloWorldHttp2Handler.java.
Where is onHeadersRead() defined?
onHeadersRead() is defined in example/src/main/java/io/netty/example/http2/helloworld/server/HelloWorldHttp2Handler.java at line 107.
What does onHeadersRead() call?
onHeadersRead() calls 1 function(s): sendResponse.
What calls onHeadersRead()?
onHeadersRead() is called by 1 function(s): userEventTriggered.

Analyze Your Own Codebase

Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.

Try Supermodel Free