HttpHeaders
An immutable, ordered list of header entries. Names are RFC 9110 tokens and values obey the container rule (after trimming SP and HTAB at the ends, no CR, LF or NUL); both are checked by the Builder. Lookup folds ASCII letters only.
Stable Core. Built with the factory HttpHeaders { add(name, value) }. Equality is on the ordered entries (name spelling, value and sensitivity). toString() prints the names in order, with * after each sensitive entry, and never a value. A transport that receives entries this type cannot hold drops an entry whose name is not a token, replaces CR, LF and NUL in a value with SP, and keeps everything else in order.
Types
Collects entries for an HttpHeaders. Not thread-safe; use it only inside the factory's lambda.
Functions
Returns the entries.
Two HttpHeaders are equal when their ordered entries are equal: name spelling, value and sensitivity.