Skip to main content

parse_accept

Function parse_accept 

Source
pub fn parse_accept(accept_header: &str) -> &'static str
Expand description

Parse an Accept header and return the best supported MIME type.

Returns "text/zinc" when the header is empty, */*, or contains no recognized MIME type.