summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
Diffstat (limited to 'include')
-rw-r--r--include/http_utility.hpp4
1 files changed, 3 insertions, 1 deletions
diff --git a/include/http_utility.hpp b/include/http_utility.hpp
index 8f2478fcd2..d18ac4bdf5 100644
--- a/include/http_utility.hpp
+++ b/include/http_utility.hpp
@@ -26,6 +26,7 @@ enum class ContentType
HTML,
JSON,
OctetStream,
+ EventStream,
};
struct ContentTypePair
@@ -34,11 +35,12 @@ struct ContentTypePair
ContentType contentTypeEnum;
};
-constexpr std::array<ContentTypePair, 4> contentTypes{{
+constexpr std::array<ContentTypePair, 5> contentTypes{{
{"application/cbor", ContentType::CBOR},
{"application/json", ContentType::JSON},
{"application/octet-stream", ContentType::OctetStream},
{"text/html", ContentType::HTML},
+ {"text/event-stream", ContentType::EventStream},
}};
inline ContentType