Expand description
SIP header names with canonical wire casing (RFC 3261 and extensions), and the raw row lookup a header store implements.
SipHeader covers the IANA SIP header field registry and deployed
headers from expired drafts, with compact forms (RFC 3261 §7.3.3) and
each header’s list and repetition rules. SipHeaderRows is the lookup
a key-value store implements; the parsing accessors over it live in
sip-header. SipHeaderFields and
SipHeaderField hold received rows as sent, and are such stores.
Macros§
- define_
header_ enum - Defines a
#[non_exhaustive]fieldless enum whose variants map to canonical protocol names.
Structs§
- Name
Matcher - A header name resolved once, for testing many wire names against it as
SipHeader::name_matchesdoes. - Parse
SipHeader Error - Error for an unrecognized value; displays as
unknown SIP header (<n> bytes). The rejected input is the field. - RowError
- A store that decodes its own framing failed to produce a header’s rows.
- SipHeader
Field - One header: its name as sent and every row it arrived with, borrowed or owned.
- SipHeader
Field Rows - The rows of a
SipHeaderField, in wire order;SipHeaderField::rowsreturns it. - SipHeader
Fields - The header rows of a message:
(name as sent, value)pairs in wire order, borrowed or owned. - SipHeader
Fields Into Iter - The rows of a
SipHeaderFields, owned by the iterator, in wire order. - SipHeader
Fields Iter - The rows of a
SipHeaderFieldsas(name as sent, value), in wire order;SipHeaderFields::iterreturns it.
Enums§
- Registry
- The registry a
SipHeadername comes from. - RowError
Kind - What a store’s framing of a header’s rows broke.
- SipHeader
- SIP header names with canonical wire casing.
Traits§
- Header
Name - A fieldless enum of protocol names, as
define_header_enum!generates. - SipHeader
Rows - Raw lookup of SIP header rows from any key-value store.
- SipHeader
Rows Ext - Lookups derived from
SipHeaderRows, for every store.