Home / Function/ onUnknownFrame() — netty Function Reference

onUnknownFrame() — netty Function Reference

Architecture documentation for the onUnknownFrame() function in Http2FrameCodec.java from the netty codebase.

Entity Profile

Dependency Diagram

graph TD
  44279444_9173_3345_1bd5_3e6243c034f6["onUnknownFrame()"]
  c7728670_9ef4_3d0d_475d_7c991c96be4c["FrameListener"]
  44279444_9173_3345_1bd5_3e6243c034f6 -->|defined in| c7728670_9ef4_3d0d_475d_7c991c96be4c
  c3697987_0f51_1bd9_b480_661a55bd7f7a["onHttp2Frame()"]
  44279444_9173_3345_1bd5_3e6243c034f6 -->|calls| c3697987_0f51_1bd9_b480_661a55bd7f7a
  style 44279444_9173_3345_1bd5_3e6243c034f6 fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

codec-http2/src/main/java/io/netty/handler/codec/http2/Http2FrameCodec.java lines 592–601

        @Override
        public void onUnknownFrame(
                ChannelHandlerContext ctx, byte frameType, int streamId, Http2Flags flags, ByteBuf payload) {
            if (streamId == 0) {
                // Ignore unknown frames on connection stream, for example: HTTP/2 GREASE testing
                return;
            }
            Http2FrameStream stream = requireStream(streamId);
            onHttp2Frame(ctx, newHttp2UnknownFrame(frameType, streamId, flags, payload.retain()).stream(stream));
        }

Domain

Subdomains

Frequently Asked Questions

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

Analyze Your Own Codebase

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

Try Supermodel Free