Add per-SNI HttpRouter support (initial)

This commit is contained in:
Alex Hultman
2022-09-26 00:22:30 +02:00
parent c77cae4635
commit b1b931edfc
5 changed files with 49 additions and 37 deletions
+4
View File
@@ -42,6 +42,10 @@ private:
HttpRequest *httpRequest;
};
/* This is the currently browsed-to router when using SNI */
HttpRouter<RouterData> *currentRouter = &router;
/* This is the default router for default SNI or non-SSL */
HttpRouter<RouterData> router;
void *upgradedWebSocket = nullptr;
bool isParsingHttp = false;