diff options
| author | Per Larsson <[email protected]> | 2021-09-09 13:57:07 +0200 |
|---|---|---|
| committer | Per Larsson <[email protected]> | 2021-09-09 13:57:07 +0200 |
| commit | b3847cbe7b98db35bbd6295c37a1086027d532b6 (patch) | |
| tree | 35cd44827d1fc41df300074f0c24b2a857ba8e30 /zencore/include | |
| parent | Fixed a number of unreferenced variable warnings (diff) | |
| download | zen-b3847cbe7b98db35bbd6295c37a1086027d532b6.tar.xz zen-b3847cbe7b98db35bbd6295c37a1086027d532b6.zip | |
Parse Accept mime type.
Diffstat (limited to 'zencore/include')
| -rw-r--r-- | zencore/include/zencore/httpserver.h | 2 |
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; }; |