Skip to main content

Module mime

Module mime 

Source
Expand description

§MIME Module

This module provides a centralized registry for MIME types (Media Types) and the standalone logic required to manage them within the application. It includes a comprehensive list of default mappings and helper functions to modify those mappings at runtime.

Functions§

default_mime_types
Returns a comprehensive, pre-configured collection of common MIME types.
remove_mime_logic
Removes a MIME type mapping from the provided map.
remove_mimes_logic
Removes multiple MIME type mappings from the provided map.
set_mime_logic
Inserts or updates a single MIME type in the provided map.
set_mimes_logic
Inserts multiple MIME types into the provided map at once.