Skip to main content

Module mime

Module mime 

Source

Modules§

multipart
Port of Go’s mime package.
quotedprintable

Enums§

MimeError

Functions§

detect_content_type
Inspect up to the first 512 bytes and return a MIME type string. Mirrors Go’s http.DetectContentType, which wraps sniff.go.
extensions_by_type
Return all extensions known for typ (e.g. "image/jpeg"[".jpeg", ".jpg"]). Mirrors Go’s mime.ExtensionsByType.
format_media_type
Serialize a media type and parameter map back to a string.
parse_media_type
Parse a MIME media-type value and its parameters.
type_by_extension
Return the MIME type for the given file extension (including the dot). Mirrors Go’s mime.TypeByExtension.