Modules§
- multipart
- Port of Go’s
mimepackage. - quotedprintable
Enums§
Functions§
- detect_
content_ type - Inspect up to the first 512 bytes and return a MIME type string.
Mirrors Go’s
http.DetectContentType, which wrapssniff.go. - extensions_
by_ type - Return all extensions known for
typ(e.g."image/jpeg"→[".jpeg", ".jpg"]). Mirrors Go’smime.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.