pub fn detect_mime(url: &str, content_bytes: Option<&[u8]>) -> Option<String>Expand description
Detect MIME type from URL + optional content bytes.
Detection order:
- Extension lookup via
mime_guess(cheap, synchronous) - Content-byte sniffing via
inferonly when extension lookup is missing or ambiguous
Returns None when neither source yields a known MIME type.