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 Telemetry calls 1 called by 1

Entity Profile

Dependency Diagram

graph TD
  35a20a9d_00ea_ecf9_7cf7_973f32dc00d6["onHeadersRead()"]
  e70e95b3_6153_ac8d_192f_c528a381f039["HelloWorldHttp2Handler"]
  35a20a9d_00ea_ecf9_7cf7_973f32dc00d6 -->|defined in| e70e95b3_6153_ac8d_192f_c528a381f039
  73a2420c_3556_3e02_6313_afa480eeee6a["userEventTriggered()"]
  73a2420c_3556_3e02_6313_afa480eeee6a -->|calls| 35a20a9d_00ea_ecf9_7cf7_973f32dc00d6
  6a02f636_5a1c_6de7_de0e_243781f44505["sendResponse()"]
  35a20a9d_00ea_ecf9_7cf7_973f32dc00d6 -->|calls| 6a02f636_5a1c_6de7_de0e_243781f44505
  style 35a20a9d_00ea_ecf9_7cf7_973f32dc00d6 fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

testsuite-http2/src/main/java/io/netty/testsuite/http2/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 testsuite-http2/src/main/java/io/netty/testsuite/http2/HelloWorldHttp2Handler.java.
Where is onHeadersRead() defined?
onHeadersRead() is defined in testsuite-http2/src/main/java/io/netty/testsuite/http2/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