mochiweb_mime

Gives a good MIME type guess based on file extension.

Gives a good MIME type guess based on file extension.

Functions


from_extension(S::string()) -> string() | undefined

Given a filename extension (e.g. ".html") return a guess for the MIME type such as "text/html". Will return the atom undefined if no good guess is available.

Bob Ippolito bob@mochimedia.com
View Functions