feat(net): serve the registry over Void::Net when available
This commit is contained in:
1 parent
b69a7d1516
commit
5de0146e83
6 files changed
+129
-10
No files matched your search
@@ -2,6 +2,9 @@
|
||||
|
||||
#include <Void/Functional/Error.hpp>
|
||||
#include <Void/Functional/Result.hpp>
|
||||
#if defined(VBS_HAS_VOID_NET)
|
||||
#include <Void/Net/HttpServer.hpp>
|
||||
#endif
|
||||
|
||||
#include <atomic>
|
||||
#include <cstddef>
|
||||
@@ -72,6 +75,9 @@ class HttpServer {
|
||||
void accept_loop();
|
||||
void handle_client(int client_fd);
|
||||
|
||||
#if defined(VBS_HAS_VOID_NET)
|
||||
std::optional<Void::Net::HttpServer> net_server_;
|
||||
#endif
|
||||
int listen_fd_{-1};
|
||||
std::uint16_t bound_port_{0};
|
||||
HttpServerOptions options_;
|
||||
|
||||
Reference in new issue
Block a user