Constant http::header::MAX_HEADER_NAME_LEN

source ยท
const MAX_HEADER_NAME_LEN: usize = _; // 65_535usize
Expand description

Maximum length of a header name

Generally, 64kb for a header name is WAY too much than would ever be needed in practice. Restricting it to this size enables using u16 values to represent offsets when dealing with header names.