aboutsummaryrefslogtreecommitdiff
path: root/src/zenhttp/servers/httpsys.h
blob: b2fe7475b21c4e9dd48051d1ff82dc14cd3b73de (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
// 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;
	bool		 ForceLoopback			 = false;
};

Ref<HttpServer> CreateHttpSysServer(HttpSysConfig Config);

}  // namespace zen