diff options
| author | Stefan Boberg <[email protected]> | 2021-09-10 19:48:26 +0200 |
|---|---|---|
| committer | Stefan Boberg <[email protected]> | 2021-09-10 19:48:26 +0200 |
| commit | e04a36f90f9e326a2e77237ba4e18399a8f60172 (patch) | |
| tree | 15c2126f15ad86bf3f9d1b00a5322deb1c6a125c /zenhttp/httpserver.cpp | |
| parent | clang-format (diff) | |
| download | zen-e04a36f90f9e326a2e77237ba4e18399a8f60172.tar.xz zen-e04a36f90f9e326a2e77237ba4e18399a8f60172.zip | |
Added beginnings of a uWS http front-end
Diffstat (limited to 'zenhttp/httpserver.cpp')
| -rw-r--r-- | zenhttp/httpserver.cpp | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/zenhttp/httpserver.cpp b/zenhttp/httpserver.cpp index f281185b7..d1893dc6e 100644 --- a/zenhttp/httpserver.cpp +++ b/zenhttp/httpserver.cpp @@ -4,6 +4,7 @@ #include "httpnull.h" #include "httpsys.h" +#include "httpuws.h" #include <zencore/compactbinary.h> #include <zencore/compactbinarypackage.h> @@ -354,7 +355,9 @@ HttpRequestRouter::HandleRequest(zen::HttpServerRequest& Request) Ref<HttpServer> CreateHttpServer() { -#if ZEN_WITH_HTTPSYS +#if 1 + return new HttpUwsServer; +#elif ZEN_WITH_HTTPSYS return new HttpSysServer{32}; #else return new HttpNullServer; |