Skip to main content

is_media_type

Function is_media_type 

Source
pub fn is_media_type(s: &str) -> bool
Expand description

Whether s is a media type a @raw(contentType:) may declare: type/subtype of RFC 7230 token characters, or the wildcard */*. Parameters (; charset=…) are not part of the declaration.