MIME.type

You're seeing just the function type, go back to MIME module for more information.

Specs

type(String.t()) :: String.t()

Returns the MIME type associated with a file extension.

If no MIME type is known for file_extension, "application/octet-stream" is returned.

Examples

iex> MIME.type("txt")
"text/plain"

iex> MIME.type("foobarbaz")
"application/octet-stream"