pub struct ContentRouter;Expand description
Content router
Implementations§
Source§impl ContentRouter
impl ContentRouter
Sourcepub fn detect(content_type_header: Option<&str>, content: &[u8]) -> ContentType
pub fn detect(content_type_header: Option<&str>, content: &[u8]) -> ContentType
Determine the content type
Sourcepub fn is_extractable(content_type: &ContentType) -> bool
pub fn is_extractable(content_type: &ContentType) -> bool
Is the content extractable (HTML/XML/text)?
Auto Trait Implementations§
impl Freeze for ContentRouter
impl RefUnwindSafe for ContentRouter
impl Send for ContentRouter
impl Sync for ContentRouter
impl Unpin for ContentRouter
impl UnwindSafe for ContentRouter
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more