Skip to main content

parse_with

Function parse_with 

Source
pub fn parse_with(header: &str, parse_parameters: bool) -> ContentType
Expand description

Parse a Content-Type header value, optionally skipping parameters.

With parse_parameters = false, only the media type is extracted (the reference’s { parameters: false } option).