diff options
| author | Dmytro Ivanov <[email protected]> | 2025-04-09 15:35:37 +0200 |
|---|---|---|
| committer | Dmytro Ivanov <[email protected]> | 2025-04-22 17:02:25 +0200 |
| commit | ea2918767afa3c00c8dfa7dd7d9960a80a460eb9 (patch) | |
| tree | 14c7579e42b29950251ab9ecede07bf01cc4a1ff /src/zenhttp/include | |
| parent | add cxxopts overload for parsing file paths from command line (#362) (diff) | |
| download | zen-ea2918767afa3c00c8dfa7dd7d9960a80a460eb9.tar.xz zen-ea2918767afa3c00c8dfa7dd7d9960a80a460eb9.zip | |
Added config, versioning and logging for plugins
Diffstat (limited to 'src/zenhttp/include')
| -rw-r--r-- | src/zenhttp/include/zenhttp/httpserver.h | 15 |
1 files changed, 11 insertions, 4 deletions
diff --git a/src/zenhttp/include/zenhttp/httpserver.h b/src/zenhttp/include/zenhttp/httpserver.h index 217455dba..03e547bf3 100644 --- a/src/zenhttp/include/zenhttp/httpserver.h +++ b/src/zenhttp/include/zenhttp/httpserver.h @@ -184,12 +184,19 @@ public: virtual void Close() = 0; }; +struct HttpServerPluginConfig +{ + std::string PluginName; + std::vector<std::pair<std::string, std::string>> PluginOptions; +}; + struct HttpServerConfig { - bool IsDedicatedServer = false; // Should be set to true for shared servers - std::string ServerClass; // Choice of HTTP server implementation - bool ForceLoopback = false; - unsigned int ThreadCount = 0; + bool IsDedicatedServer = false; // Should be set to true for shared servers + std::string ServerClass; // Choice of HTTP server implementation + std::vector<HttpServerPluginConfig> PluginConfigs; + bool ForceLoopback = false; + unsigned int ThreadCount = 0; struct { |