pub trait ContentTypeResolver: Send + Sync { // Required method fn resolve(&self, data: &[u8]) -> Cow<'static, str>; }
Represents a resolver to resolve content types from a byte slice.
Resolves a byte slice and returns the content type, or DEFAULT_CONTENT_TYPE if none can be resolved from this resolver.
DEFAULT_CONTENT_TYPE