MIME.Types
A toolbelt for working with MIME types in Elixir.
This was extracted from Plug so that other projects can make use of it.
Installation
To install through Hex:
Add
mime_types
to your list of dependencies inmix.exs
:def deps do [{:mime_types, "~> 0.1.0"}] end
Add any custom types you want to your
config/config.exs
:config :mime_types, custom: %{ "application/vnd.api+json" => ["json-api"] }