Skip to main content

Module map

Module map 

Source
Expand description

Vec-backed, order- and case-preserving header map.

Designed for typical HTTP request/response sizes (< 30 entries), where linear scan beats hash-table overhead. Supports duplicate names (required for headers like Set-Cookie) by storing all entries in insertion order.

Lookup is case-insensitive via HeaderName’s Eq impl.

Structs§

HeaderMap
A list of (name, value) pairs in insertion order.

Traits§

AsHeaderName
Trait for values that can be used as a lookup key against a HeaderMap.