diff options
Diffstat (limited to 'src/zenhttp/servers/httpsys.h')
| -rw-r--r-- | src/zenhttp/servers/httpsys.h | 28 |
1 files changed, 28 insertions, 0 deletions
diff --git a/src/zenhttp/servers/httpsys.h b/src/zenhttp/servers/httpsys.h new file mode 100644 index 000000000..6a6b16525 --- /dev/null +++ b/src/zenhttp/servers/httpsys.h @@ -0,0 +1,28 @@ +// Copyright Epic Games, Inc. All Rights Reserved. + +#pragma once + +#include <zenhttp/httpserver.h> + +#ifndef ZEN_WITH_HTTPSYS +# if ZEN_PLATFORM_WINDOWS +# define ZEN_WITH_HTTPSYS 1 +# else +# define ZEN_WITH_HTTPSYS 0 +# endif +#endif + +namespace zen { + +struct HttpSysConfig +{ + unsigned int ThreadCount = 0; + unsigned int AsyncWorkThreadCount = 0; + bool IsAsyncResponseEnabled = true; + bool IsRequestLoggingEnabled = false; + bool IsDedicatedServer = false; +}; + +Ref<HttpServer> CreateHttpSysServer(HttpSysConfig Config); + +} // namespace zen |