Home / Function/ onHttp2Frame() — netty Function Reference

onHttp2Frame() — netty Function Reference

Architecture documentation for the onHttp2Frame() function in Http2MultiplexCodec.java from the netty codebase.

Entity Profile

Dependency Diagram

graph TD
  32b10e6c_b784_372e_860b_7e037423e94b["onHttp2Frame()"]
  a7ac469b_ce05_746a_3b73_34450541872b["Http2MultiplexCodec"]
  32b10e6c_b784_372e_860b_7e037423e94b -->|defined in| a7ac469b_ce05_746a_3b73_34450541872b
  7a9be5dc_4230_32da_7f05_59f39e1e3d2c["onHttp2GoAwayFrame()"]
  32b10e6c_b784_372e_860b_7e037423e94b -->|calls| 7a9be5dc_4230_32da_7f05_59f39e1e3d2c
  style 32b10e6c_b784_372e_860b_7e037423e94b fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

codec-http2/src/main/java/io/netty/handler/codec/http2/Http2MultiplexCodec.java lines 139–153

    @Override
    final void onHttp2Frame(ChannelHandlerContext ctx, Http2Frame frame) {
        if (frame instanceof Http2StreamFrame) {
            Http2StreamFrame msg = (Http2StreamFrame) frame;
            AbstractHttp2StreamChannel channel  = (AbstractHttp2StreamChannel)
                    ((DefaultHttp2FrameStream) msg.stream()).attachment;
            channel.fireChildRead(msg);
            return;
        }
        if (frame instanceof Http2GoAwayFrame) {
            onHttp2GoAwayFrame(ctx, (Http2GoAwayFrame) frame);
        }
        // Send frames down the pipeline
        ctx.fireChannelRead(frame);
    }

Domain

Subdomains

Frequently Asked Questions

What does onHttp2Frame() do?
onHttp2Frame() is a function in the netty codebase, defined in codec-http2/src/main/java/io/netty/handler/codec/http2/Http2MultiplexCodec.java.
Where is onHttp2Frame() defined?
onHttp2Frame() is defined in codec-http2/src/main/java/io/netty/handler/codec/http2/Http2MultiplexCodec.java at line 139.
What does onHttp2Frame() call?
onHttp2Frame() calls 1 function(s): onHttp2GoAwayFrame.

Analyze Your Own Codebase

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

Try Supermodel Free