Function mime_guess::get_mime_type
source · [−]👎 Deprecated since 2.0.0:
use from_ext(search_ext).first_or_octet_stream()
instead
Expand description
Get the MIME type associated with a file extension.
If there is no association for the extension, or ext
is empty,
application/octet-stream
is returned.
Note
In HTTP applications, it might be preferable to not send a Content-Type
header at all instead of defaulting to application/octet-stream
.