#[non_exhaustive]pub enum SipHeader {
Show 134 variants
Accept,
AcceptContact,
AcceptEncoding,
AcceptLanguage,
AcceptResourcePriority,
AdditionalIdentity,
AlertInfo,
AlertmsgError,
Allow,
AllowEvents,
AnswerMode,
AttestationInfo,
AuthenticationInfo,
Authorization,
CallId,
CallInfo,
CellularNetworkInfo,
Contact,
ContentDisposition,
ContentEncoding,
ContentId,
ContentLanguage,
ContentLength,
ContentType,
Cseq,
Date,
DcInfo,
Encryption,
ErrorInfo,
Event,
Expires,
FeatureCaps,
FlowTimer,
From,
Geolocation,
GeolocationError,
GeolocationRouting,
Hide,
HistoryInfo,
Identity,
IdentityInfo,
InfoPackage,
InReplyTo,
Join,
MaxBreadth,
MaxForwards,
MimeVersion,
MinExpires,
MinSe,
Organization,
OriginationId,
PAccessNetworkInfo,
PAnswerState,
PAssertedIdentity,
PAssertedService,
PAssociatedUri,
PCalledPartyId,
PChargeInfo,
PChargingFunctionAddresses,
PChargingVector,
PDcsTracePartyId,
PDcsOsps,
PDcsBillingInfo,
PDcsLaes,
PDcsRedirect,
PEarlyMedia,
PMediaAuthorization,
PPreferredIdentity,
PPreferredService,
PPrivateNetworkIndication,
PProfileKey,
PRefusedUriList,
PServedUser,
PUserDatabase,
PVisitedNetworkId,
Path,
PermissionMissing,
PolicyContact,
PolicyId,
Priority,
PriorityShare,
PriorityVerstat,
PrivAnswerMode,
Privacy,
ProxyAuthenticate,
ProxyAuthorization,
ProxyRequire,
Rack,
Reason,
ReasonPhrase,
RecordRoute,
RecvInfo,
ReferEventsAt,
ReferSub,
ReferTo,
ReferredBy,
RejectContact,
RelayedCharge,
Replaces,
ReplyTo,
RequestDisposition,
Require,
ResourcePriority,
ResourceShare,
ResponseKey,
ResponseSource,
RestorationInfo,
RetryAfter,
Route,
Rseq,
SecurityClient,
SecurityServer,
SecurityVerify,
Server,
ServiceInteractInfo,
ServiceRoute,
SessionExpires,
SessionId,
SipEtag,
SipIfMatch,
Subject,
SubscriptionState,
Supported,
SuppressIfMatch,
TargetDialog,
Timestamp,
To,
TriggerConsent,
Unsupported,
UserAgent,
UserToUser,
Via,
Warning,
WwwAuthenticate,
}Expand description
Standard SIP header names with canonical wire casing.
Each variant maps to the header’s canonical form as defined in the
relevant RFC. FromStr is case-insensitive; Display always emits
the canonical form.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Accept
Accept (RFC 3261).
AcceptContact
Accept-Contact.
AcceptEncoding
Accept-Encoding (RFC 3261).
AcceptLanguage
Accept-Language (RFC 3261).
AcceptResourcePriority
Accept-Resource-Priority.
AdditionalIdentity
Additional-Identity.
AlertInfo
Alert-Info (RFC 3261).
AlertmsgError
AlertMsg-Error.
Allow
Allow (RFC 3261).
AllowEvents
Allow-Events (RFC 6665).
AnswerMode
Answer-Mode.
AttestationInfo
Attestation-Info.
AuthenticationInfo
Authentication-Info.
Authorization
Authorization (RFC 3261).
CallId
Call-ID (RFC 3261).
CallInfo
Call-Info (RFC 3261).
CellularNetworkInfo
Cellular-Network-Info.
Contact
Contact (RFC 3261).
ContentDisposition
Content-Disposition (RFC 3261).
ContentEncoding
Content-Encoding (RFC 3261).
ContentId
Content-ID.
ContentLanguage
Content-Language (RFC 3261).
ContentLength
Content-Length (RFC 3261).
ContentType
Content-Type (RFC 3261).
Cseq
CSeq (RFC 3261).
Date
Date (RFC 3261).
DcInfo
DC-Info.
Encryption
Encryption (deprecated in RFC 3261).
ErrorInfo
Error-Info (RFC 3261).
Event
Event (RFC 6665).
Expires
Expires (RFC 3261).
FeatureCaps
Feature-Caps.
FlowTimer
Flow-Timer.
From
From (RFC 3261).
Geolocation
Geolocation (RFC 6442).
GeolocationError
Geolocation-Error (RFC 6442).
GeolocationRouting
Geolocation-Routing (RFC 6442).
Hide
Hide (deprecated in RFC 3261).
HistoryInfo
History-Info (RFC 7044).
Identity
Identity (RFC 8224).
IdentityInfo
Identity-Info.
InfoPackage
Info-Package.
InReplyTo
In-Reply-To (RFC 3261).
Join
Join (RFC 3911).
MaxBreadth
Max-Breadth.
MaxForwards
Max-Forwards (RFC 3261).
MimeVersion
MIME-Version (RFC 3261).
MinExpires
Min-Expires (RFC 3261).
MinSe
Min-SE (RFC 4028).
Organization
Organization (RFC 3261).
OriginationId
Origination-Id.
PAccessNetworkInfo
P-Access-Network-Info.
PAnswerState
P-Answer-State.
PAssertedIdentity
P-Asserted-Identity (RFC 3325).
PAssertedService
P-Asserted-Service.
PAssociatedUri
P-Associated-URI.
PCalledPartyId
P-Called-Party-ID.
PChargeInfo
P-Charge-Info.
PChargingFunctionAddresses
P-Charging-Function-Addresses.
PChargingVector
P-Charging-Vector.
PDcsTracePartyId
P-DCS-Trace-Party-ID.
PDcsOsps
P-DCS-OSPS.
PDcsBillingInfo
P-DCS-Billing-Info.
PDcsLaes
P-DCS-LAES.
PDcsRedirect
P-DCS-Redirect.
PEarlyMedia
P-Early-Media.
PMediaAuthorization
P-Media-Authorization.
PPreferredIdentity
P-Preferred-Identity (RFC 3325).
PPreferredService
P-Preferred-Service.
PPrivateNetworkIndication
P-Private-Network-Indication.
PProfileKey
P-Profile-Key.
PRefusedUriList
P-Refused-URI-List.
PServedUser
P-Served-User.
PUserDatabase
P-User-Database.
PVisitedNetworkId
P-Visited-Network-ID.
Path
Path (RFC 3327).
PermissionMissing
Permission-Missing.
PolicyContact
Policy-Contact.
PolicyId
Policy-ID.
Priority
Priority (RFC 3261).
Priority-Share.
PriorityVerstat
Priority-Verstat.
PrivAnswerMode
Priv-Answer-Mode.
Privacy
Privacy (RFC 3323).
ProxyAuthenticate
Proxy-Authenticate (RFC 3261).
ProxyAuthorization
Proxy-Authorization (RFC 3261).
ProxyRequire
Proxy-Require (RFC 3261).
Rack
RAck.
Reason
Reason (RFC 3326).
ReasonPhrase
Reason-Phrase.
RecordRoute
Record-Route (RFC 3261).
RecvInfo
Recv-Info.
ReferEventsAt
Refer-Events-At.
ReferSub
Refer-Sub.
ReferTo
Refer-To (RFC 3515).
ReferredBy
Referred-By (RFC 3892).
RejectContact
Reject-Contact.
RelayedCharge
Relayed-Charge.
Replaces
Replaces (RFC 3891).
ReplyTo
Reply-To (RFC 3261).
RequestDisposition
Request-Disposition.
Require
Require (RFC 3261).
ResourcePriority
Resource-Priority.
Resource-Share.
ResponseKey
Response-Key (deprecated in RFC 3261).
ResponseSource
Response-Source.
RestorationInfo
Restoration-Info.
RetryAfter
Retry-After (RFC 3261).
Route
Route (RFC 3261).
Rseq
RSeq.
SecurityClient
Security-Client (RFC 3329).
SecurityServer
Security-Server (RFC 3329).
SecurityVerify
Security-Verify (RFC 3329).
Server
Server (RFC 3261).
ServiceInteractInfo
Service-Interact-Info.
ServiceRoute
Service-Route (RFC 3608).
SessionExpires
Session-Expires (RFC 4028).
SessionId
Session-ID.
SipEtag
SIP-ETag.
SipIfMatch
SIP-If-Match.
Subject
Subject (RFC 3261).
SubscriptionState
Subscription-State (RFC 6665).
Supported
Supported (RFC 3261).
SuppressIfMatch
Suppress-If-Match.
TargetDialog
Target-Dialog (RFC 4538).
Timestamp
Timestamp (RFC 3261).
To
To (RFC 3261).
TriggerConsent
Trigger-Consent.
Unsupported
Unsupported (RFC 3261).
UserAgent
User-Agent (RFC 3261).
UserToUser
User-to-User (RFC 7433).
Via
Via (RFC 3261).
Warning
Warning (RFC 3261).
WwwAuthenticate
WWW-Authenticate (RFC 3261).
Implementations§
Source§impl SipHeader
impl SipHeader
Sourcepub fn from_compact(ch: u8) -> Option<Self>
pub fn from_compact(ch: u8) -> Option<Self>
Resolve a compact form letter to the corresponding header (RFC 3261 §7.3.3).
Case-insensitive: both 'f' and 'F' resolve to SipHeader::From.
Sourcepub fn compact_form(&self) -> Option<char>
pub fn compact_form(&self) -> Option<char>
Return the compact form letter for this header, if one exists.
Sourcepub fn is_multi_valued(&self) -> bool
pub fn is_multi_valued(&self) -> bool
Whether this header may appear multiple times in a SIP message.
Headers listed here use comma-separated or repeated-header semantics per RFC 3261 §7.3.1 and their defining RFCs.
Sourcepub fn parse_name(name: &str) -> Result<Self, ParseSipHeaderError>
pub fn parse_name(name: &str) -> Result<Self, ParseSipHeaderError>
Parse a header name, including RFC 3261 §7.3.3 compact forms.
Tries compact form resolution for single-character input, then falls back to case-insensitive canonical name matching.