Lua-mimeparse is a project mainly written in Lua, based on the MIT license.
Basic functions for handling mime-types in Lua
MIME-Type Parser for Lua
This module mimics http://code.google.com/p/mimeparse/ proving basic functions for parsing mime-type names and matching them against a list of media-ranges.