mime_sniffer

Trait MimeTypeSniffer

Source
pub trait MimeTypeSniffer {
    // Required method
    fn sniff_mime_type(&self) -> Option<&str>;
}
Expand description

Extension methods for MIME type sniffer

Required Methods§

Source

fn sniff_mime_type(&self) -> Option<&str>

sniff content for MIME type

Implementors§

Source§

impl<'a, T: 'a + AsRef<[u8]>, U: 'a + AsRef<str>> MimeTypeSniffer for HttpRequest<'a, T, U>

Source§

impl<T: AsRef<[u8]>> MimeTypeSniffer for T