Initial commit

This commit is contained in:
2019-06-15 12:00:21 +02:00
commit eda5d9df6b
31 changed files with 1328 additions and 0 deletions

23
src/http/mime.hpp Normal file
View 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);
}