30 lines
1.3 KiB
C++
30 lines
1.3 KiB
C++
#pragma once
|
|
|
|
#include <string_view>
|
|
|
|
namespace http_server
|
|
{
|
|
using namespace std;
|
|
|
|
struct content_type
|
|
{
|
|
content_type() = delete;
|
|
constexpr inline static std::string_view k_TextHtml = "text/html"sv;
|
|
constexpr inline static std::string_view k_TextCsv = "text/csv"sv;
|
|
constexpr inline static std::string_view k_TextPlain = "text/plain"sv;
|
|
constexpr inline static std::string_view k_JSON = "application/json"sv;
|
|
constexpr inline static std::string_view k_Audio = "audio/mpeg"sv;
|
|
constexpr inline static std::string_view k_AudioExample = "audio/example"sv;
|
|
constexpr inline static std::string_view k_FontWoff = "font/woff"sv;
|
|
constexpr inline static std::string_view k_FontTtf = "font/ttf"sv;
|
|
constexpr inline static std::string_view k_FontOtf = "font/otf"sv;
|
|
constexpr inline static std::string_view k_ImagePng = "image/png"sv;
|
|
constexpr inline static std::string_view k_ImageJpeg = "image/jpeg"sv;
|
|
constexpr inline static std::string_view k_ImageGif = "image/gif"sv;
|
|
constexpr inline static std::string_view k_Model = "model/vrml"sv;
|
|
constexpr inline static std::string_view k_VideoMp4 = "video/mp4"sv;
|
|
constexpr inline static std::string_view k_VideoWebm = "video/webm"sv;
|
|
constexpr inline static std::string_view k_Binary = "application/octet-stream"sv;
|
|
};
|
|
}
|