Home / Function/ setMaxHeaderTableSize() — netty Function Reference

setMaxHeaderTableSize() — netty Function Reference

Architecture documentation for the setMaxHeaderTableSize() function in HpackEncoder.java from the netty codebase.

Entity Profile

Dependency Diagram

graph TD
  adfd1aa5_7f5f_afdb_ebcb_3b15451068ea["setMaxHeaderTableSize()"]
  616b4418_6852_a9a9_188d_063a8768b35a["HpackEncoder"]
  adfd1aa5_7f5f_afdb_ebcb_3b15451068ea -->|defined in| 616b4418_6852_a9a9_188d_063a8768b35a
  462841fd_e2cb_45fe_e761_3d897f7c2b9f["ensureCapacity()"]
  adfd1aa5_7f5f_afdb_ebcb_3b15451068ea -->|calls| 462841fd_e2cb_45fe_e761_3d897f7c2b9f
  ff646124_1e6a_47c4_ccf7_8d4b7525d870["encodeInteger()"]
  adfd1aa5_7f5f_afdb_ebcb_3b15451068ea -->|calls| ff646124_1e6a_47c4_ccf7_8d4b7525d870
  style adfd1aa5_7f5f_afdb_ebcb_3b15451068ea fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

codec-http2/src/main/java/io/netty/handler/codec/http2/HpackEncoder.java lines 234–246

    public void setMaxHeaderTableSize(ByteBuf out, long maxHeaderTableSize) throws Http2Exception {
        if (maxHeaderTableSize < MIN_HEADER_TABLE_SIZE || maxHeaderTableSize > MAX_HEADER_TABLE_SIZE) {
            throw connectionError(PROTOCOL_ERROR, "Header Table Size must be >= %d and <= %d but was %d",
              MIN_HEADER_TABLE_SIZE, MAX_HEADER_TABLE_SIZE, maxHeaderTableSize);
        }
        if (this.maxHeaderTableSize == maxHeaderTableSize) {
            return;
        }
        this.maxHeaderTableSize = maxHeaderTableSize;
        ensureCapacity(0);
        // Casting to integer is safe as we verified the maxHeaderTableSize is a valid unsigned int.
        encodeInteger(out, 0x20, 5, maxHeaderTableSize);
    }

Domain

Subdomains

Frequently Asked Questions

What does setMaxHeaderTableSize() do?
setMaxHeaderTableSize() is a function in the netty codebase, defined in codec-http2/src/main/java/io/netty/handler/codec/http2/HpackEncoder.java.
Where is setMaxHeaderTableSize() defined?
setMaxHeaderTableSize() is defined in codec-http2/src/main/java/io/netty/handler/codec/http2/HpackEncoder.java at line 234.
What does setMaxHeaderTableSize() call?
setMaxHeaderTableSize() calls 2 function(s): encodeInteger, ensureCapacity.

Analyze Your Own Codebase

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

Try Supermodel Free