Skip to main content

Module headers

Module headers 

Source
Expand description

Case-insensitive helpers for the context’s header maps.

Context headers are stored as a plain HashMap<String, Vec<String>>. The keys are usually lowercase — hyper normalises them on the way in — but a Lua script, another plugin, or a sandbox-seeded response can introduce a mixed-case name. Since HTTP header names are case-insensitive (RFC 9110 §5.1), removals and lookups must be too, or they silently miss.

Functions§

remove_ci
Removes every entry whose name matches name case-insensitively.