encodeHeadersEnforceMaxHeaderListSize() — netty Function Reference
Architecture documentation for the encodeHeadersEnforceMaxHeaderListSize() function in HpackEncoder.java from the netty codebase.
Entity Profile
Dependency Diagram
graph TD a657774a_7ae2_3ee7_53d1_bce01150a34f["encodeHeadersEnforceMaxHeaderListSize()"] 616b4418_6852_a9a9_188d_063a8768b35a["HpackEncoder"] a657774a_7ae2_3ee7_53d1_bce01150a34f -->|defined in| 616b4418_6852_a9a9_188d_063a8768b35a 01b56066_223e_92d6_96df_fd4dd2e7dddb["encodeHeaders()"] 01b56066_223e_92d6_96df_fd4dd2e7dddb -->|calls| a657774a_7ae2_3ee7_53d1_bce01150a34f a8618c2b_623b_24d4_8ec8_e02e3e01f3c3["encodeHeadersIgnoreMaxHeaderListSize()"] a657774a_7ae2_3ee7_53d1_bce01150a34f -->|calls| a8618c2b_623b_24d4_8ec8_e02e3e01f3c3 style a657774a_7ae2_3ee7_53d1_bce01150a34f fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
codec-http2/src/main/java/io/netty/handler/codec/http2/HpackEncoder.java lines 128–144
private void encodeHeadersEnforceMaxHeaderListSize(int streamId, ByteBuf out, Http2Headers headers,
SensitivityDetector sensitivityDetector)
throws Http2Exception {
long headerSize = 0;
// To ensure we stay consistent with our peer check the size is valid before we potentially modify HPACK state.
for (Map.Entry<CharSequence, CharSequence> header : headers) {
CharSequence name = header.getKey();
CharSequence value = header.getValue();
// OK to increment now and check for bounds after because this value is limited to unsigned int and will not
// overflow.
headerSize += HpackHeaderField.sizeOf(name, value);
if (headerSize > maxHeaderListSize) {
headerListSizeExceeded(streamId, maxHeaderListSize, false);
}
}
encodeHeadersIgnoreMaxHeaderListSize(out, headers, sensitivityDetector);
}
Domain
Subdomains
Called By
Source
Frequently Asked Questions
What does encodeHeadersEnforceMaxHeaderListSize() do?
encodeHeadersEnforceMaxHeaderListSize() is a function in the netty codebase, defined in codec-http2/src/main/java/io/netty/handler/codec/http2/HpackEncoder.java.
Where is encodeHeadersEnforceMaxHeaderListSize() defined?
encodeHeadersEnforceMaxHeaderListSize() is defined in codec-http2/src/main/java/io/netty/handler/codec/http2/HpackEncoder.java at line 128.
What does encodeHeadersEnforceMaxHeaderListSize() call?
encodeHeadersEnforceMaxHeaderListSize() calls 1 function(s): encodeHeadersIgnoreMaxHeaderListSize.
What calls encodeHeadersEnforceMaxHeaderListSize()?
encodeHeadersEnforceMaxHeaderListSize() is called by 1 function(s): encodeHeaders.
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free