Skip to main content

parse_text

Function parse_text 

Source
pub fn parse_text(raw_value: &[u8]) -> String
Expand description

Parse the header field value as an RFC 8621 §4.1.2.2 Text form: whitespace unfolded, RFC 2047 encoded-words decoded, Unicode normalised to NFC.

Convenience wrapper over parse_header_typed with HeaderForm::Text.