2 LuCI http protocol implementation - mime helper class.
4 This class provides functions to guess mime types from file extensions and
7 module "luci.http.mime"
10 MIME mapping table containing extension - mimetype relations.
16 Extract extension from a filename and return corresponding mime-type or
18 "application/octet-stream" if the extension is unknown.
21 @param filename The filename for which the mime type is guessed
22 @return String containign the determined mime type
26 Return corresponding extension for a given mime type or nil if the
28 given mime-type is unknown.
31 @param mimetype The mimetype to retrieve the extension from
32 @return String with the extension or nil for unknown type