MySQL 8.0.40
Source Code Documentation
ContentType Class Reference

#include <content_type.h>

Static Public Member Functions

static const char * from_extension (std::string extension)
 get a mimetype for a file-extension. More...
 

Member Function Documentation

◆ from_extension()

static const char * ContentType::from_extension ( std::string  extension)
inlinestatic

get a mimetype for a file-extension.

file-extension is matched case-insensitive

returns 'application/octet-stream' in case no mapping is found

Returns
a mimetype for the extension
Return values
'application/octet-stream'if no mapping is found

The documentation for this class was generated from the following file: