erf_static (erf v0.2.0)

View Source

erf's static files handler utility module.

Summary

Functions

Returns the MIME type for the given file extension. https://developer.mozilla.org/en-US/docs/Web/HTTP/Basics_of_HTTP/MIME_types/Common_types

Functions

mime_type(Extension)

-spec mime_type(Extension) -> MimeType when Extension :: binary(), MimeType :: binary().

Returns the MIME type for the given file extension. https://developer.mozilla.org/en-US/docs/Web/HTTP/Basics_of_HTTP/MIME_types/Common_types