defaultMaxInboundHeaderListSize top-level constant

int const defaultMaxInboundHeaderListSize

Default maximum decoded size of one inbound HTTP/2 field section.

256 KiB matches the limit that Chromium/Cronet apply to field sections sent by servers, bounding HPACK amplification before headers reach application code. The field-size accounting follows RFC 9113 section 6.5.2.

Implementation

const int defaultMaxInboundHeaderListSize = 256 * 1024;