module

Mime

TODO: JSON not set

Class methods

from_extension(extension)

Get the mime type from an extension This does not allow extensions with dots or full paths TODO allow dots and full paths

Source
from_file(file)

Get the mime tipe from a file

Source
index

Get the mimetype index

TODO: Is it a good idea to cache this? Is there a middle road availible?

Source

Nested types