Skip to main content

Module headers

Module headers 

Source
Expand description

Header types

Structs§

HeaderName
The name of a http header. This can be either a KnownHeaderName or a string representation of an unknown header.
HeaderValue
A HeaderValue represents the right hand side of a single name: value pair.
HeaderValues
A header value is a collection of one or more HeaderValue. It has been optimized for the “one HeaderValue” case, but can accomodate more than one value.
Headers
Trillium’s header map type
IntoIter
An owned iterator for Headers
Iter
A borrowed iterator for Headers
OccupiedEntry
A view into an occupied entry in particular Headers for a given HeaderName.
VacantEntry
A view into a vacant entry in particular Headers for a given HeaderName.

Enums§

Entry
A view into the storage for a particular header name
KnownHeaderName
A short nonehaustive enum of headers that trillium can represent as a u8. Use a KnownHeaderName variant instead of a &’static str anywhere possible, as it allows trillium to skip parsing the header entirely.