Skip to main content

check_attribute

Function check_attribute 

Source
pub fn check_attribute(attribute: &Attribute) -> Result<()>
Expand description

Checks one attribute’s value against the grammar of its name (RFC 9429 section 5.8: a line that is not well formed rejects the description “even if the value is to be discarded”): a known attribute’s value must parse as its type, a property attribute (rtcp-mux, sendrecv, …) must have none, and an unknown one needs only a token name and a value without NUL, CR or LF (RFC 8866 section 5.13). The checks across lines and levels of SessionDescription::validate are not made.