pub fn bucket_input_mime(header_value: Option<&HeaderValue>) -> &'static strExpand 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
crate::metrics::INPUT_MIME_NONE— header absentcrate::metrics::INPUT_MIME_MARKDOWN—text/markdown(any params)crate::metrics::INPUT_MIME_HTML—text/html(any params)crate::metrics::INPUT_MIME_DOCX—application/vnd.openxmlformats-officedocument.wordprocessingml.document(any params)crate::metrics::INPUT_MIME_UNSUPPORTED— anything else