Hook up h3 router and callbacks

This commit is contained in:
Alex Hultman
2022-05-15 14:39:34 +02:00
parent 7da868a57d
commit 73c9262f34
9 changed files with 205 additions and 88 deletions
+1
View File
@@ -35,6 +35,7 @@ template <class USERDATA>
struct HttpRouter {
/* These are public for now */
std::vector<std::string> methods = {"get", "post", "head", "put", "delete", "connect", "options", "trace", "patch"};
std::vector<std::string> upperCasedMethods = {"GET", "POST", "HEAD", "PUT", "DELETE", "CONNECT", "OPTIONS", "TRACE", "PATCH"};
static const uint32_t HIGH_PRIORITY = 0xd0000000, MEDIUM_PRIORITY = 0xe0000000, LOW_PRIORITY = 0xf0000000;
private: