diff options
| author | Stefan Boberg <[email protected]> | 2025-12-11 09:34:24 +0100 |
|---|---|---|
| committer | GitHub Enterprise <[email protected]> | 2025-12-11 09:34:24 +0100 |
| commit | 3de9a65cd990f2a4f5395b7e2a094471633eb98b (patch) | |
| tree | f1640a32fd2b68a8f1b6f77f5ba5c4cbf959cb0b /src/zenhttp/servers/httpnull.cpp | |
| parent | 5.7.14-pre3 (diff) | |
| download | zen-3de9a65cd990f2a4f5395b7e2a094471633eb98b.tar.xz zen-3de9a65cd990f2a4f5395b7e2a094471633eb98b.zip | |
HTTP server API changes for improved extensibility (#684)
* refactored `HttpServer` so all subclass member functions are proctected, to make it easier to extend base functionality
* added API service, can be used to enumerate registered endpoints (at `/api`). Currently only very basic information is provided
Diffstat (limited to 'src/zenhttp/servers/httpnull.cpp')
| -rw-r--r-- | src/zenhttp/servers/httpnull.cpp | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/src/zenhttp/servers/httpnull.cpp b/src/zenhttp/servers/httpnull.cpp index 9ac1c61ce..06838a0ed 100644 --- a/src/zenhttp/servers/httpnull.cpp +++ b/src/zenhttp/servers/httpnull.cpp @@ -19,20 +19,20 @@ HttpNullServer::~HttpNullServer() } void -HttpNullServer::RegisterService(HttpService& Service) +HttpNullServer::OnRegisterService(HttpService& Service) { ZEN_UNUSED(Service); } int -HttpNullServer::Initialize(int BasePort, std::filesystem::path DataDir) +HttpNullServer::OnInitialize(int BasePort, std::filesystem::path DataDir) { ZEN_UNUSED(DataDir); return BasePort; } void -HttpNullServer::Run(bool IsInteractiveSession) +HttpNullServer::OnRun(bool IsInteractiveSession) { const bool TestMode = !IsInteractiveSession; @@ -76,13 +76,13 @@ HttpNullServer::Run(bool IsInteractiveSession) } void -HttpNullServer::RequestExit() +HttpNullServer::OnRequestExit() { m_ShutdownEvent.Set(); } void -HttpNullServer::Close() +HttpNullServer::OnClose() { } |