/mimetype.h

get mimetype string from a file extension in C11

Primary LanguageCDo What The F*ck You Want To Public LicenseWTFPL

mimetype.h

This library provides the following two functions:

/* If the extension is unknown, returns NULL. */
const char* mimetype_from_ext(const char* ext);
const char* mimetype_from_ext_n(const char* ext, size_t len);

Mapping data is came from nginx.