View Source erf_static (erf v0.1.2)

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

-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