Enumeration
MIMEType
MIME type mapping for static file serving.
enum MIMEType
Overview
This enumeration provides MIME type mappings for common file types served in static documentation. Each case includes appropriate charset declarations where applicable.
Overview
The MIME type determines how browsers and HTTP clients interpret file content. This enumeration covers text formats, images, fonts, and multimedia commonly found in documentation sites.
Topics
Getting MIME Types
Determines the MIME type from a file extension.
Text Formats
HTML document with UTF-8 character encoding.
Cascading Style Sheet with UTF-8 character encoding.
JavaScript source code with UTF-8 character encoding.
Plain text document with UTF-8 character encoding.
XML document with UTF-8 character encoding.
Application Formats
JSON data with UTF-8 character encoding.
Portable Document Format (PDF) file.
ZIP archive file.
Generic binary data stream (fallback for unknown types).
Image Formats
Portable Network Graphics (PNG) image.
JPEG image format.
Graphics Interchange Format (GIF) image.
Scalable Vector Graphics (SVG) image.
WebP image format.
Icon image format (typically .ico files).
Font Formats
Web Open Font Format (WOFF) font.
Web Open Font Format 2.0 (WOFF2) font.
TrueType Font (TTF) format.
OpenType Font (OTF) format.
Multimedia Formats
MPEG-4 video format.
WebM video format.
MPEG audio format (MP3).
Waveform Audio Format (WAV).