plug_rest v0.4.5 PlugRest.Utils
Summary
Functions
Converts media type representation to a String
Types
Functions
Specs
print_media_type(String.t) :: String.t
print_media_type(list) :: String.t
print_media_type(media_type) :: String.t
Converts media type representation to a String
Examples
iex> PlugRest.Utils.print_media_type("text/plain")
"text/plain"
iex> PlugRest.Utils.print_media_type({"text", "plain", %{})
"text/plain"