Crate mime_guess [] [src]

Guessing of MIME types by file extension.

Uses a static list of file-extension : MIME type mappings.

Statics

MIME_TYPES

A mapping of known file extensions and their MIME types.

Functions

get_mime_type

Get the MIME type associated with a file extension.

get_mime_type_str

Get the MIME type string associated with a file extension.

guess_mime_type

Guess the MIME type of the Path by its extension.

octet_stream

Get the MIME type for application/octet-stream (generic binary stream)