C++ content-type utility class.
Lookup the content-type associated with a file path or extension.
MimeTypes::getType("pdf");
MimeTypes::getType(".txt");
MimeTypes::getType("/images/image.png");
MimeTypes::getType("/bin/binary.BiN");
Get the extension for a content-type.
MimeTypes::getExtension("application/pdf");
const char * type;
int i = 0;
do {
type = MimeTypes::getExtension("text/plain", i++);
} while (type != NULL);