feat(workflow): example stats page with embedded Chart.js, inline form validation errors

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
This commit is contained in:
2026-10-24 01:59:27 +02:00
co-authored by Claude Sonnet 5.5
parent 16a0bb0de4
commit 00af65613d
36 changed files with 1274 additions and 138 deletions
+5 -1
View File
@@ -22,6 +22,8 @@ class Server {
Server(const Server&) = delete;
Server& operator=(const Server&) = delete;
// Optional sink for connection counters; set before start().
void set_stats(std::shared_ptr<Stats> stats);
bool start(const std::string& host, int port);
void stop();
int port() const;
@@ -29,9 +31,11 @@ class Server {
private:
void loop();
void handle_one(int fd);
void handle_one(int fd, std::size_t& bytes_in, std::size_t& bytes_out,
ConnEnd& how);
std::shared_ptr<Application> app_;
std::shared_ptr<Stats> stats_;
int listen_fd_ = -1;
int port_ = 0;
std::atomic<bool> running_{false};