Home / Function/ failedWhenUnknownFrameInMiddleOfHeaderBlock() — netty Function Reference

failedWhenUnknownFrameInMiddleOfHeaderBlock() — netty Function Reference

Architecture documentation for the failedWhenUnknownFrameInMiddleOfHeaderBlock() function in DefaultHttp2FrameReaderTest.java from the netty codebase.

Entity Profile

Dependency Diagram

graph TD
  3c43812b_c9ac_7613_f6b3_27f6f6a1c8f8["failedWhenUnknownFrameInMiddleOfHeaderBlock()"]
  66b2f0cc_bce5_f8e1_a7ee_93cd2a101951["DefaultHttp2FrameReaderTest"]
  3c43812b_c9ac_7613_f6b3_27f6f6a1c8f8 -->|defined in| 66b2f0cc_bce5_f8e1_a7ee_93cd2a101951
  6dbae7d2_4be8_0723_a821_daaa741ba082["writeHeaderFrame()"]
  3c43812b_c9ac_7613_f6b3_27f6f6a1c8f8 -->|calls| 6dbae7d2_4be8_0723_a821_daaa741ba082
  style 3c43812b_c9ac_7613_f6b3_27f6f6a1c8f8 fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

codec-http2/src/test/java/io/netty/handler/codec/http2/DefaultHttp2FrameReaderTest.java lines 131–156

    @Test
    public void failedWhenUnknownFrameInMiddleOfHeaderBlock() throws Http2Exception {
        final int streamId = 1;

        final ByteBuf input = Unpooled.buffer();
        try {
            Http2Headers headers = new DefaultHttp2Headers()
                    .authority("foo")
                    .method("get")
                    .path("/")
                    .scheme("https");
            Http2Flags flags = new Http2Flags().endOfHeaders(false).endOfStream(true);
            writeHeaderFrame(input, streamId, headers, flags);
            writeFrameHeader(input, 0, (byte) 0xff, new Http2Flags(), streamId);

            Http2Exception ex = assertThrows(Http2Exception.class, new Executable() {
                @Override
                public void execute() throws Throwable {
                    frameReader.readFrame(ctx, input, listener);
                }
            });
            assertFalse(ex instanceof Http2Exception.StreamException);
        } finally {
            input.release();
        }
    }

Domain

Subdomains

Frequently Asked Questions

What does failedWhenUnknownFrameInMiddleOfHeaderBlock() do?
failedWhenUnknownFrameInMiddleOfHeaderBlock() is a function in the netty codebase, defined in codec-http2/src/test/java/io/netty/handler/codec/http2/DefaultHttp2FrameReaderTest.java.
Where is failedWhenUnknownFrameInMiddleOfHeaderBlock() defined?
failedWhenUnknownFrameInMiddleOfHeaderBlock() is defined in codec-http2/src/test/java/io/netty/handler/codec/http2/DefaultHttp2FrameReaderTest.java at line 131.
What does failedWhenUnknownFrameInMiddleOfHeaderBlock() call?
failedWhenUnknownFrameInMiddleOfHeaderBlock() calls 1 function(s): writeHeaderFrame.

Analyze Your Own Codebase

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

Try Supermodel Free