libonion
|
#include "types.h"
Functions | |
void | onion_mime_set (onion_dict *) |
Sets the mime dictionary (extension -> mime_type) | |
const char * | onion_mime_get (const char *filename) |
Returns a mime type based on the file name. | |
void | onion_mime_update (const char *extension, const char *mimetype) |
Updates a mime record, for that extensions set that mimetype. If mimetype==NULL, removes it. |