A covered-component identifier (RFC 9421 Section 2): an sf-string naming either a derived component or an HTTP field, plus optional parameters.
Parameter order is preserved exactly as parsed because the signature base
and @signature-params line must reproduce it byte-for-byte.
Summary
Functions
All derived component names.
The bare-item value of a parameter, or nil.
True when the req parameter is set.
Canonical identifier string as it appears in the signature base.
The component without its req parameter.
Resolves a component to its base-line values against a message.
Types
Functions
@spec derived_names() :: [String.t()]
All derived component names.
@spec from_item(item()) :: {:ok, t()} | {:error, MessageSignatures.Error.t()}
The bare-item value of a parameter, or nil.
@spec parse(String.t()) :: {:ok, t()} | {:error, MessageSignatures.Error.t()}
True when the req parameter is set.
Canonical identifier string as it appears in the signature base.
The component without its req parameter.
@spec value(t(), MessageSignatures.Message.t(), keyword()) :: {:ok, [String.t()]} | {:error, MessageSignatures.Error.t()}
Resolves a component to its base-line values against a message.
Every successfully resolved component yields a one-element list.