aboutsummaryrefslogtreecommitdiff
path: root/zenhttp/httpserver.cpp
diff options
context:
space:
mode:
authorStefan Boberg <[email protected]>2021-09-10 19:48:26 +0200
committerStefan Boberg <[email protected]>2021-09-10 19:48:26 +0200
commite04a36f90f9e326a2e77237ba4e18399a8f60172 (patch)
tree15c2126f15ad86bf3f9d1b00a5322deb1c6a125c /zenhttp/httpserver.cpp
parentclang-format (diff)
downloadzen-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.cpp5
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;