for more information visit the package's GitHub page
Package contains the following modules:
elm-media-type
lets you parse and handle media
types like text/html;
charset=UTF-8
and application/javascript
in Elm.
Here is an example of how it works:
MediaType.fromString "application/javascript"
== Just
{ parameters = Dict.fromList []
, registrationTree = Nothing
, subtype = "javascript"
, suffix = Nothing
, type_ = Application
}