diff options
| author | Stefan Boberg <[email protected]> | 2021-09-09 16:29:24 +0200 |
|---|---|---|
| committer | Stefan Boberg <[email protected]> | 2021-09-09 16:29:24 +0200 |
| commit | a73862b954209fd1adce0f07b8f80b8cf27f2486 (patch) | |
| tree | 07f2898998f884e871c47a2979dfb01434443584 /zenhttp/httpserver.cpp | |
| parent | Factored out http server related code into zenhttp module since it feels out ... (diff) | |
| download | zen-a73862b954209fd1adce0f07b8f80b8cf27f2486.tar.xz zen-a73862b954209fd1adce0f07b8f80b8cf27f2486.zip | |
Added compile time logic to toggle http.sys / null http implementation on/off
Diffstat (limited to 'zenhttp/httpserver.cpp')
| -rw-r--r-- | zenhttp/httpserver.cpp | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/zenhttp/httpserver.cpp b/zenhttp/httpserver.cpp index a0b17fe44..3999b3b6c 100644 --- a/zenhttp/httpserver.cpp +++ b/zenhttp/httpserver.cpp @@ -3,6 +3,7 @@ #include <zenhttp/httpserver.h> #include "httpsys.h" +#include "httpnull.h" #include <zencore/compactbinary.h> #include <zencore/compactbinarypackage.h> @@ -353,7 +354,11 @@ HttpRequestRouter::HandleRequest(zen::HttpServerRequest& Request) Ref<HttpServer> CreateHttpServer() { +#if ZEN_WITH_HTTPSYS return new HttpSysServer{32}; +#else + return new HttpNullServer; +#endif } ////////////////////////////////////////////////////////////////////////// |