Skip to main content

Module mime_parser

Module mime_parser 

Source
Expand description

HTTP Accept negotiation and Content-Type validation for the conversion API.

Functionsยง

bucket_input_mime
Returns the bounded input_mime_type label value for a Content-Type header.
bucket_output_mime
Returns the bounded output_mime_type label value for a conversion outcome.
negotiate_accept
Negotiates the Accept header for the /conversion endpoint.
validate_content_type
Validates the Content-Type header for the /conversion endpoint and resolves it to the matching reader format.