Module mime_guess

Expand description

Re-export of the mime_guess crate.

Guessing of MIME types by file extension.

Modules§

mime
Mime

Structs§

Iter
An iterator over the Mime types of a MimeGuess.
IterRaw
An iterator over the raw media type strings of a MimeGuess.
Mime
A parsed mime or media type.
MimeGuess
A “guess” of the MIME/Media Type(s) of an extension or path as one or more Mime instances.

Functions§

from_ext
Wrapper of MimeGuess::from_ext().
from_path
Wrapper of MimeGuess::from_path().
get_mime_typeDeprecated
Get the MIME type associated with a file extension.
get_mime_type_optDeprecated
Get the MIME type associated with a file extension.
get_mime_type_strDeprecated
Get the MIME type string associated with a file extension. Case-insensitive.
guess_mime_typeDeprecated
Guess the MIME type of path by its extension (as defined by Path::extension()).
guess_mime_type_optDeprecated
Guess the MIME type of path by its extension (as defined by Path::extension()).
mime_str_for_path_extDeprecated
Guess the MIME type string of path by its extension (as defined by Path::extension()).
octet_streamDeprecated
Get the MIME type for application/octet-stream (generic binary stream)