Skip to main content

parse_sipfrag

Function parse_sipfrag 

Source
pub fn parse_sipfrag(body: &[u8]) -> Option<(u16, String)>
Expand description

The status line out of a message/sipfrag body.

Tolerant about what follows: a fragment may legally carry headers after the status line, and a transferee that sends them is not wrong. Strict about the line itself — anything that is not a SIP status line means the body is not what its Content-Type claimed.