lmug-util
lmug utility functions.
ext->mime-type/1
(ext)
The same as #'ext->mime-type/2 but with an empty list for optional
mime-types.
ext->mime-type/2
(ext override-mime-types (when (is_atom ext)))
(ext override-mime-types (when (is_list ext)))
Get the mimetype from the filename extension. Takes an optional proplist of
extensions to mimetypes that overrides values in the default-mime-types map.
get-lmug-version/0
get-version/0
httpd->lmug-request/1
(data)
Every web server that gets an lmug adapter needs to implement a function
like this one which will transform that server's request data into the
request data needed by lmug, in the record structure required by lmug (and
defined in the lmug Spec).