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 aMimeGuess
. - IterRaw
- An iterator over the raw media type strings of a
MimeGuess
. - Mime
- A parsed mime or media type.
- Mime
Guess - 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_ type Deprecated - Get the MIME type associated with a file extension.
- get_
mime_ type_ opt Deprecated - Get the MIME type associated with a file extension.
- get_
mime_ type_ str Deprecated - Get the MIME type string associated with a file extension. Case-insensitive.
- guess_
mime_ type Deprecated - Guess the MIME type of
path
by its extension (as defined byPath::extension()
). - guess_
mime_ type_ opt Deprecated - Guess the MIME type of
path
by its extension (as defined byPath::extension()
). - mime_
str_ for_ path_ ext Deprecated - Guess the MIME type string of
path
by its extension (as defined byPath::extension()
). - octet_
stream Deprecated - Get the MIME type for
application/octet-stream
(generic binary stream)