aboutsummaryrefslogtreecommitdiff
path: root/zenhttp/include
diff options
context:
space:
mode:
authorStefan Boberg <[email protected]>2021-09-09 20:42:30 +0200
committerStefan Boberg <[email protected]>2021-09-09 20:42:30 +0200
commitc2d6ad4962a7d1a81c25ab3d7bf83cff8647b49a (patch)
tree7911bfdb1e597eb217cf69c4cbd1098d39f9bb87 /zenhttp/include
parentAttempted to tweak option defaults, they still don't quite work the way I wou... (diff)
downloadzen-c2d6ad4962a7d1a81c25ab3d7bf83cff8647b49a.tar.xz
zen-c2d6ad4962a7d1a81c25ab3d7bf83cff8647b49a.zip
Parse Accept mime type (ad hoc cherry pick from main)
Diffstat (limited to 'zenhttp/include')
-rw-r--r--zenhttp/include/zenhttp/httpserver.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/zenhttp/include/zenhttp/httpserver.h b/zenhttp/include/zenhttp/httpserver.h
index d9637dff5..03695b1ce 100644
--- a/zenhttp/include/zenhttp/httpserver.h
+++ b/zenhttp/include/zenhttp/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;
@@ -253,6 +254,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_UriUtf8;
ExtendableStringBuilder<256> m_QueryStringUtf8;
};