Home / Function/ testSpdySynReplyFrameHeaderBlock() — netty Function Reference

testSpdySynReplyFrameHeaderBlock() — netty Function Reference

Architecture documentation for the testSpdySynReplyFrameHeaderBlock() function in SpdyFrameDecoderTest.java from the netty codebase.

Entity Profile

Dependency Diagram

graph TD
  571d6d0d_75b9_534b_659b_d2eeda185a9d["testSpdySynReplyFrameHeaderBlock()"]
  694e7f21_2c70_1029_2eab_f7afcf7a1d96["SpdyFrameDecoderTest"]
  571d6d0d_75b9_534b_659b_d2eeda185a9d -->|defined in| 694e7f21_2c70_1029_2eab_f7afcf7a1d96
  22716287_5b34_da1d_c8e3_c9777b358484["encodeControlFrameHeader()"]
  571d6d0d_75b9_534b_659b_d2eeda185a9d -->|calls| 22716287_5b34_da1d_c8e3_c9777b358484
  style 571d6d0d_75b9_534b_659b_d2eeda185a9d fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

codec-http/src/test/java/io/netty/handler/codec/spdy/SpdyFrameDecoderTest.java lines 479–505

    @Test
    public void testSpdySynReplyFrameHeaderBlock() throws Exception {
        short type = 2;
        byte flags = 0;
        int length = 4;
        int headerBlockLength = 1024;
        int streamId = RANDOM.nextInt() & 0x7FFFFFFF | 0x01;

        ByteBuf buf = Unpooled.buffer(SPDY_HEADER_SIZE + length + headerBlockLength);
        encodeControlFrameHeader(buf, type, flags, length + headerBlockLength);
        buf.writeInt(streamId);

        ByteBuf headerBlock = Unpooled.buffer(headerBlockLength);
        for (int i = 0; i < 256; i ++) {
            headerBlock.writeInt(RANDOM.nextInt());
        }

        decoder.decode(buf);
        decoder.decode(headerBlock);
        verify(delegate).readSynReplyFrame(streamId, false);
        verify(delegate).readHeaderBlock(headerBlock.slice(0, headerBlock.writerIndex()));
        verify(delegate).readHeaderBlockEnd();
        assertFalse(buf.isReadable());
        assertFalse(headerBlock.isReadable());
        buf.release();
        headerBlock.release();
    }

Domain

Subdomains

Frequently Asked Questions

What does testSpdySynReplyFrameHeaderBlock() do?
testSpdySynReplyFrameHeaderBlock() is a function in the netty codebase, defined in codec-http/src/test/java/io/netty/handler/codec/spdy/SpdyFrameDecoderTest.java.
Where is testSpdySynReplyFrameHeaderBlock() defined?
testSpdySynReplyFrameHeaderBlock() is defined in codec-http/src/test/java/io/netty/handler/codec/spdy/SpdyFrameDecoderTest.java at line 479.
What does testSpdySynReplyFrameHeaderBlock() call?
testSpdySynReplyFrameHeaderBlock() calls 1 function(s): encodeControlFrameHeader.

Analyze Your Own Codebase

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

Try Supermodel Free