Home / Function/ testLargeHeaderName() — netty Function Reference

testLargeHeaderName() — netty Function Reference

Architecture documentation for the testLargeHeaderName() function in SpdyHeaderBlockZlibDecoderTest.java from the netty codebase.

Entity Profile

Dependency Diagram

graph TD
  03fac5f5_af58_d62f_3272_36f909d5e086["testLargeHeaderName()"]
  af170dea_1fdf_d9d0_0058_316c478ff6cc["SpdyHeaderBlockZlibDecoderTest"]
  03fac5f5_af58_d62f_3272_36f909d5e086 -->|defined in| af170dea_1fdf_d9d0_0058_316c478ff6cc
  style 03fac5f5_af58_d62f_3272_36f909d5e086 fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

codec-http/src/test/java/io/netty/handler/codec/spdy/SpdyHeaderBlockZlibDecoderTest.java lines 119–144

    @Test
    public void testLargeHeaderName() throws Exception {
        ByteBuf headerBlock = Unpooled.buffer(8220);
        headerBlock.writeBytes(zlibHeader);
        headerBlock.writeByte(0); // Non-compressed block
        headerBlock.writeByte(0x0c); // little-endian length (8204)
        headerBlock.writeByte(0x20); // little-endian length (8204)
        headerBlock.writeByte(0xf3); // one's compliment of length
        headerBlock.writeByte(0xdf); // one's compliment of length
        headerBlock.writeInt(1); // number of Name/Value pairs
        headerBlock.writeInt(8192); // length of name
        for (int i = 0; i < 8192; i++) {
            headerBlock.writeByte('n');
        }
        headerBlock.writeInt(0); // length of value
        headerBlock.writeBytes(zlibSyncFlush);
        decoder.decode(ByteBufAllocator.DEFAULT, headerBlock, frame);
        decoder.endHeaderBlock(frame);

        assertFalse(headerBlock.isReadable());
        assertFalse(frame.isInvalid());
        assertFalse(frame.isTruncated());
        assertEquals(1, frame.headers().names().size());

        headerBlock.release();
    }

Domain

Subdomains

Frequently Asked Questions

What does testLargeHeaderName() do?
testLargeHeaderName() is a function in the netty codebase, defined in codec-http/src/test/java/io/netty/handler/codec/spdy/SpdyHeaderBlockZlibDecoderTest.java.
Where is testLargeHeaderName() defined?
testLargeHeaderName() is defined in codec-http/src/test/java/io/netty/handler/codec/spdy/SpdyHeaderBlockZlibDecoderTest.java at line 119.

Analyze Your Own Codebase

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

Try Supermodel Free