Skip to main content

extract_all_headers

Function extract_all_headers 

Source
pub fn extract_all_headers(message: &str) -> Vec<(String, String)>
Expand description

Extract all headers from a raw SIP message as name-value pairs.

Returns headers in wire order, preserving multiple occurrences of the same header name as separate entries. Header folding is unfolded per RFC 3261 §7.3.1. Header names are returned as-is from the wire (not canonicalized — compact forms like f: remain f, not From).

Stops at the blank line separating headers from body.