From e0da430c424192c24f5089ceb97f37062349e9ef Mon Sep 17 00:00:00 2001 From: Dan Engelbrecht Date: Thu, 14 Sep 2023 03:54:57 -0400 Subject: http and httpsys config options (#401) * Added `--http-threads`, `--httpsys-async-work-threads`, `--httpsys-enable-request-logging` and `--httpsys-enable-async-response` command line options to zenserver * remove unused CreateHttpSysServer --- src/zenhttp/httpsys.h | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) (limited to 'src/zenhttp/httpsys.h') diff --git a/src/zenhttp/httpsys.h b/src/zenhttp/httpsys.h index cf16042d7..3a2a6065d 100644 --- a/src/zenhttp/httpsys.h +++ b/src/zenhttp/httpsys.h @@ -36,7 +36,14 @@ class HttpSysServer : public HttpServer friend class HttpSysTransaction; public: - explicit HttpSysServer(unsigned int ThreadCount, unsigned int AsyncWorkThreadCount); + struct Config + { + unsigned int ThreadCount = 0; + unsigned int AsyncWorkThreadCount = 0; + bool IsAsyncResponseEnabled = true; + bool IsRequestLoggingEnabled = false; + }; + explicit HttpSysServer(const Config& Config); ~HttpSysServer(); // HttpServer interface implementation -- cgit v1.2.3