diff options
| author | Stefan Boberg <[email protected]> | 2021-09-27 11:31:43 +0200 |
|---|---|---|
| committer | Stefan Boberg <[email protected]> | 2021-09-27 11:31:43 +0200 |
| commit | f6ee71a52da990b3bdc41bf56fcef87b30ca964b (patch) | |
| tree | 0719e6deaea27d24a1f08441643927625098c1f9 /zenserver/testing/httptest.h | |
| parent | Compact binary to JSON (#12) (diff) | |
| download | zen-f6ee71a52da990b3bdc41bf56fcef87b30ca964b.tar.xz zen-f6ee71a52da990b3bdc41bf56fcef87b30ca964b.zip | |
Added simple compact binary endpoint for JSON testing
Diffstat (limited to 'zenserver/testing/httptest.h')
| -rw-r--r-- | zenserver/testing/httptest.h | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/zenserver/testing/httptest.h b/zenserver/testing/httptest.h index b445fb450..f55780d05 100644 --- a/zenserver/testing/httptest.h +++ b/zenserver/testing/httptest.h @@ -5,6 +5,8 @@ #include <zencore/logging.h> #include <zenhttp/httpserver.h> +#include <atomic> + namespace zen { /** @@ -37,7 +39,8 @@ public: }; private: - HttpRequestRouter m_Router; + HttpRequestRouter m_Router; + std::atomic<uint32_t> m_Counter{0}; RwLock m_RwLock; std::unordered_map<uint32_t, Ref<PackageHandler>> m_HandlerMap; |