aboutsummaryrefslogtreecommitdiff
path: root/src/zenhttp/include
diff options
context:
space:
mode:
Diffstat (limited to 'src/zenhttp/include')
-rw-r--r--src/zenhttp/include/zenhttp/httpserver.h15
1 files changed, 14 insertions, 1 deletions
diff --git a/src/zenhttp/include/zenhttp/httpserver.h b/src/zenhttp/include/zenhttp/httpserver.h
index d1a562ee4..c233075be 100644
--- a/src/zenhttp/include/zenhttp/httpserver.h
+++ b/src/zenhttp/include/zenhttp/httpserver.h
@@ -182,7 +182,20 @@ public:
virtual void Close() = 0;
};
-Ref<HttpServer> CreateHttpServer(std::string_view ServerClass);
+struct HttpServerConfig
+{
+ std::string ServerClass; // Choice of HTTP server implementation
+ unsigned int ThreadCount = 0;
+
+ struct
+ {
+ unsigned int AsyncWorkThreadCount = 0;
+ bool IsAsyncResponseEnabled = true;
+ bool IsRequestLoggingEnabled = false;
+ } HttpSys;
+};
+
+Ref<HttpServer> CreateHttpServer(const HttpServerConfig& Config);
//////////////////////////////////////////////////////////////////////////