//! Allowlist-based Content-Type checking.
use Mime;
/// Checks whether a `Content-Type` header value is in the provided allowlist.
///
/// # Errors
/// - `"content_type_missing"` — the header value was absent.
/// - `"content_type_invalid"` — the header value could not be parsed as a MIME type.
/// - `"content_type_not_allowed"` — the MIME type is not present in `allowlist`.