feat(net): serve the registry over Void::Net when available
VoidBuildSystem CI / build-and-test-gcc16 (push) Failing after 4s
VoidBuildSystem CI / signing-openssl-gcc16 (push) Failing after 13s

This commit is contained in:
faumaray committed 2026-12-04 01:46:05 +03:00
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_;