Skip to main content

bucket_input_mime

Function bucket_input_mime 

Source
pub fn bucket_input_mime(header_value: Option<&HeaderValue>) -> &'static str
Expand description

Returns the bounded input_mime_type label value for a Content-Type header.

This function is intentionally MORE permissive than validate_content_type: it returns the matching label for any text/markdown, text/html, or DOCX value regardless of charset or other parameters, because the label answers “what did the client try to send?” rather than “is it valid?”.

§Label values