Skip to main content

get_media_extensions_str

Function get_media_extensions_str 

Source
pub fn get_media_extensions_str(
    media_type: &str,
) -> Option<&'static [&'static str]>
Expand description

Get a list of known extensions for a media type string.

Parameters (everything after the first ;) are ignored. The search is case-insensitive.

Returns None if media_type is not valid or unknown. See get_extensions for the wildcard behavior.