From 74d104d4eb3735e0881f0e1fccc2df8aa4d3f57d Mon Sep 17 00:00:00 2001 From: Stefan Boberg Date: Fri, 13 Oct 2023 09:55:27 +0200 Subject: restructured zenhttp (#472) separating the http server implementations into a directory and moved diagsvcs into zenserver since it's somewhat hard-coded for it --- src/zenhttp/servers/httpsys.h | 28 ++++++++++++++++++++++++++++ 1 file changed, 28 insertions(+) create mode 100644 src/zenhttp/servers/httpsys.h (limited to 'src/zenhttp/servers/httpsys.h') 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 + +#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 CreateHttpSysServer(HttpSysConfig Config); + +} // namespace zen -- cgit v1.2.3