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:
@@ -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};
|
||||
|
||||
Reference in New Issue
Block a user