Home / Function/ writeUnknownFrame() — netty Function Reference

writeUnknownFrame() — netty Function Reference

Architecture documentation for the writeUnknownFrame() function in Http3FrameCodec.java from the netty codebase.

Function java Buffer Allocators calls 2 called by 1

Entity Profile

Dependency Diagram

graph TD
  c4e0ff51_5f31_820f_cd6d_b0653d594561["writeUnknownFrame()"]
  57499e74_1040_f300_12bb_215179e108be["Http3FrameCodec"]
  c4e0ff51_5f31_820f_cd6d_b0653d594561 -->|defined in| 57499e74_1040_f300_12bb_215179e108be
  8956333e_1f8a_a4ec_390f_4f648d6508a4["write0()"]
  8956333e_1f8a_a4ec_390f_4f648d6508a4 -->|calls| c4e0ff51_5f31_820f_cd6d_b0653d594561
  bc9d9e09_417f_cc2b_50ed_b48f93b8395c["connectionError()"]
  c4e0ff51_5f31_820f_cd6d_b0653d594561 -->|calls| bc9d9e09_417f_cc2b_50ed_b48f93b8395c
  a234e34e_4b68_a34a_5b98_49872289b7ac["write()"]
  c4e0ff51_5f31_820f_cd6d_b0653d594561 -->|calls| a234e34e_4b68_a34a_5b98_49872289b7ac
  style c4e0ff51_5f31_820f_cd6d_b0653d594561 fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

codec-http3/src/main/java/io/netty/handler/codec/http3/Http3FrameCodec.java lines 575–597

    private void writeUnknownFrame(
            ChannelHandlerContext ctx, Http3UnknownFrame frame, ChannelPromise promise) {
        long type = frame.type();
        if (Http3CodecUtils.isReservedHttp2FrameType(type)) {
            Http3Exception exception = new Http3Exception(Http3ErrorCode.H3_FRAME_UNEXPECTED,
                    "Reserved type for HTTP/2 send.");
            promise.setFailure(exception);
            // See https://tools.ietf.org/html/draft-ietf-quic-http-32#section-7.2.8
            connectionError(ctx, exception.errorCode(), exception.getMessage(), false);
            return;
        }
        if (!Http3CodecUtils.isReservedFrameType(type)) {
            Http3Exception exception = new Http3Exception(Http3ErrorCode.H3_FRAME_UNEXPECTED,
                    "Non reserved type for HTTP/3 send.");
            promise.setFailure(exception);
            return;
        }
        ByteBuf out = ctx.alloc().directBuffer();
        writeVariableLengthInteger(out, type);
        writeVariableLengthInteger(out, frame.content().readableBytes());
        ByteBuf content = frame.content().retain();
        ctx.write(Unpooled.wrappedUnmodifiableBuffer(out, content), promise);
    }

Domain

Subdomains

Called By

Frequently Asked Questions

What does writeUnknownFrame() do?
writeUnknownFrame() is a function in the netty codebase, defined in codec-http3/src/main/java/io/netty/handler/codec/http3/Http3FrameCodec.java.
Where is writeUnknownFrame() defined?
writeUnknownFrame() is defined in codec-http3/src/main/java/io/netty/handler/codec/http3/Http3FrameCodec.java at line 575.
What does writeUnknownFrame() call?
writeUnknownFrame() calls 2 function(s): connectionError, write.
What calls writeUnknownFrame()?
writeUnknownFrame() is called by 1 function(s): write0.

Analyze Your Own Codebase

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

Try Supermodel Free