Home / Function/ appendToHeaderList() — netty Function Reference

appendToHeaderList() — netty Function Reference

Architecture documentation for the appendToHeaderList() function in HpackDecoder.java from the netty codebase.

Entity Profile

Dependency Diagram

graph TD
  43fd3d2d_f851_d2d8_22e4_2146ae2443f8["appendToHeaderList()"]
  09e943af_04b7_39e7_f2dd_47f3684d790f["Http2HeadersSink"]
  43fd3d2d_f851_d2d8_22e4_2146ae2443f8 -->|defined in| 09e943af_04b7_39e7_f2dd_47f3684d790f
  f902eae9_e223_3289_c748_bbdc7d188389["decode()"]
  f902eae9_e223_3289_c748_bbdc7d188389 -->|calls| 43fd3d2d_f851_d2d8_22e4_2146ae2443f8
  b66cbe7c_5b8d_72cf_4540_be29fac4d7d8["insertHeader()"]
  b66cbe7c_5b8d_72cf_4540_be29fac4d7d8 -->|calls| 43fd3d2d_f851_d2d8_22e4_2146ae2443f8
  style 43fd3d2d_f851_d2d8_22e4_2146ae2443f8 fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

codec-http2/src/main/java/io/netty/handler/codec/http2/HpackDecoder.java lines 549–569

        void appendToHeaderList(AsciiString name, AsciiString value) {
            headersLength += HpackHeaderField.sizeOf(name, value);
            exceededMaxLength |= headersLength > maxHeaderListSize;

            if (exceededMaxLength || validationException != null) {
                // We don't store the header since we've already failed validation requirements.
                return;
            }

            try {
                headers.add(name, value);
                if (validateHeaders) {
                    previousType = validateHeader(streamId, name, value, previousType);
                }
            } catch (IllegalArgumentException ex) {
                validationException = streamError(streamId, PROTOCOL_ERROR, ex,
                        "Validation failed for header '%s': %s", name, ex.getMessage());
            } catch (Http2Exception ex) {
                validationException = streamError(streamId, PROTOCOL_ERROR, ex, ex.getMessage());
            }
        }

Domain

Subdomains

Frequently Asked Questions

What does appendToHeaderList() do?
appendToHeaderList() is a function in the netty codebase, defined in codec-http2/src/main/java/io/netty/handler/codec/http2/HpackDecoder.java.
Where is appendToHeaderList() defined?
appendToHeaderList() is defined in codec-http2/src/main/java/io/netty/handler/codec/http2/HpackDecoder.java at line 549.
What calls appendToHeaderList()?
appendToHeaderList() is called by 2 function(s): decode, insertHeader.

Analyze Your Own Codebase

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

Try Supermodel Free