MIME.from_path

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

Specs

from_path(Path.t()) :: String.t()

Guesses the MIME type based on the path's extension. See type/1.

Examples

iex> MIME.from_path("index.html")
"text/html"