aboutsummaryrefslogtreecommitdiff
path: root/zencore/include
diff options
context:
space:
mode:
authorPer Larsson <[email protected]>2021-09-09 13:57:07 +0200
committerPer Larsson <[email protected]>2021-09-09 13:57:07 +0200
commitb3847cbe7b98db35bbd6295c37a1086027d532b6 (patch)
tree35cd44827d1fc41df300074f0c24b2a857ba8e30 /zencore/include
parentFixed a number of unreferenced variable warnings (diff)
downloadzen-b3847cbe7b98db35bbd6295c37a1086027d532b6.tar.xz
zen-b3847cbe7b98db35bbd6295c37a1086027d532b6.zip
Parse Accept mime type.
Diffstat (limited to 'zencore/include')
-rw-r--r--zencore/include/zencore/httpserver.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/zencore/include/zencore/httpserver.h b/zencore/include/zencore/httpserver.h
index d4d9e21e0..493ea63e9 100644
--- a/zencore/include/zencore/httpserver.h
+++ b/zencore/include/zencore/httpserver.h
@@ -206,6 +206,7 @@ public:
inline HttpVerb RequestVerb() const { return m_Verb; }
inline HttpContentType RequestContentType() { return m_ContentType; }
+ inline HttpContentType AcceptContentType() { return m_AcceptType; }
const char* HeaderAccept() const;
const char* HeaderAcceptEncoding() const;
@@ -252,6 +253,7 @@ protected:
HttpVerb m_Verb = HttpVerb::kGet;
uint64_t m_ContentLength = ~0ull;
HttpContentType m_ContentType = HttpContentType::kBinary;
+ HttpContentType m_AcceptType = HttpContentType::kUnknownContentType;
ExtendableStringBuilder<256> m_Uri;
ExtendableStringBuilder<256> m_QueryString;
};