Keyboard shortcuts

Press or to navigate between chapters

Press S or / to search in the book

Press ? to show this help

Press Esc to hide this help

MimeTypes – MIME Type Lookup

Lean: Hale.MimeTypes | Haskell: mime-types

Map file extensions to MIME types. Default fallback: application/octet-stream. Handles multi-part extensions (e.g., tar.gz).

Key Types

TypeDescription
MimeTypeString
MimeMapList (Extension × MimeType)

API

FunctionDescription
defaultMimeLookupLook up MIME type by filename
defaultMimeMapBuilt-in extension → MIME mapping

Files

  • Hale/MimeTypes/Network/Mime.lean – MimeType, MimeMap, lookup