Initial commit
This commit is contained in:
23
src/http/mime.hpp
Normal file
23
src/http/mime.hpp
Normal file
@@ -0,0 +1,23 @@
|
||||
#pragma once
|
||||
#include <filesystem>
|
||||
#include <string>
|
||||
#include <vector>
|
||||
|
||||
namespace Http
|
||||
{
|
||||
enum class FileType
|
||||
{
|
||||
UNKNOWN = -1,
|
||||
HTML,
|
||||
CSS,
|
||||
JS,
|
||||
PNG,
|
||||
JPG,
|
||||
MP3,
|
||||
MP4
|
||||
};
|
||||
|
||||
std::string GetMimeType(std::filesystem::path const & path);
|
||||
std::string GetMimeType(std::string const & extension);
|
||||
std::string GetMimeType(FileType const fileType);
|
||||
}
|
||||
Reference in New Issue
Block a user