plugins/mime/mime library

Classes

MagicNumber
MimeTypeResolver
MIME-type resolver class, used to customize the lookup of mime-types.

Properties

defaultMagicNumbersMaxLength int
The maximum number of bytes needed, to match all default magic-numbers.
no setter

Functions

lookupMimeType(String path, {List<int>? headerBytes}) String?
Extract the extension from path and use that for MIME-type lookup, using the default extension map.