ivar v0.2.0 Ivar.Utilities

Ivar.Utilities is a collection of utility functions used for building requests

Summary

Functions

Returns the mime type for a given type

Functions

get_mime_type(type)

Returns the mime type for a given type

Args

  • type - a binary including the mime extension or a custom mime type

Type

  • mime extension - "jpg" would return "image/jpeg"
  • custom mime type - "custom/type" any input containing a / is considered a custom type

Usage

iex> Ivar.Utilities.get_mime_type("png")
"image/png"