Module rama::http::dep::mime_guess
Expand description
Re-export of the mime_guess
crate.
Guessing of MIME types by file extension.
Modules§
- Mime
Structs§
- An iterator over the
Mime
types of aMimeGuess
. - An iterator over the raw media type strings of a
MimeGuess
. - A parsed mime or media type.
- A “guess” of the MIME/Media Type(s) of an extension or path as one or more
Mime
instances.
Functions§
- Wrapper of
MimeGuess::from_ext()
. - Wrapper of
MimeGuess::from_path()
. - get_mime_typeDeprecatedGet the MIME type associated with a file extension.
- get_mime_type_optDeprecatedGet the MIME type associated with a file extension.
- get_mime_type_strDeprecatedGet the MIME type string associated with a file extension. Case-insensitive.
- guess_mime_typeDeprecatedGuess the MIME type of
path
by its extension (as defined byPath::extension()
). - guess_mime_type_optDeprecatedGuess the MIME type of
path
by its extension (as defined byPath::extension()
). - mime_str_for_path_extDeprecatedGuess the MIME type string of
path
by its extension (as defined byPath::extension()
). - octet_streamDeprecatedGet the MIME type for
application/octet-stream
(generic binary stream)