Packages

A simple and easy to use API created on top of the Mist web server

Current section

Files

Jump to
howdy src howdy@mime.erl
Raw

src/howdy@mime.erl

-module(howdy@mime).
-compile(no_auto_import).
-export([from_path/1, from_extention/1, from_mime/1]).
-spec from_path(binary()) -> binary().
from_path(A) ->
mimerl:filename(A).
-spec from_extention(binary()) -> binary().
from_extention(A) ->
mimerl:extension(A).
-spec from_mime(binary()) -> list(binary()).
from_mime(A) ->
mimerl:mime_to_exts(A).