diff options
| author | Stefan Boberg <[email protected]> | 2021-09-06 09:20:41 +0200 |
|---|---|---|
| committer | Stefan Boberg <[email protected]> | 2021-09-06 09:20:41 +0200 |
| commit | 29476a989ac9a36d19a421b47a689a582f4ab244 (patch) | |
| tree | 929d2587df8d53009678de367106ed4dd16e3876 /zencore/include | |
| parent | Removed legacy key-value cache (may be reinstated in another form in the future) (diff) | |
| download | zen-29476a989ac9a36d19a421b47a689a582f4ab244.tar.xz zen-29476a989ac9a36d19a421b47a689a582f4ab244.zip | |
HTTP package handling updated (not final)
Diffstat (limited to 'zencore/include')
| -rw-r--r-- | zencore/include/zencore/httpserver.h | 11 |
1 files changed, 7 insertions, 4 deletions
diff --git a/zencore/include/zencore/httpserver.h b/zencore/include/zencore/httpserver.h index 009fd9f2c..2158f87a8 100644 --- a/zencore/include/zencore/httpserver.h +++ b/zencore/include/zencore/httpserver.h @@ -256,10 +256,13 @@ protected: class HttpServerException : public std::exception { public: - HttpServerException(const char* Message, uint32_t Error) : std::exception(Message), m_ErrorCode(Error) {} + HttpServerException(const char* Message, uint32_t Error); + + virtual const char* what() const override; private: - uint32_t m_ErrorCode; + uint32_t m_ErrorCode; + std::string m_Message; }; /** @@ -318,7 +321,7 @@ class HttpRouterRequest public: HttpRouterRequest(HttpServerRequest& Request) : m_HttpRequest(Request) {} - ZENCORE_API std::string GetCapture(int Index) const; + ZENCORE_API std::string GetCapture(uint32_t Index) const; inline HttpServerRequest& ServerRequest() { return m_HttpRequest; } private: @@ -331,7 +334,7 @@ private: }; inline std::string -HttpRouterRequest::GetCapture(int Index) const +HttpRouterRequest::GetCapture(uint32_t Index) const { ZEN_ASSERT(Index < m_Match.size()); |