More cleanup

This commit is contained in:
2025-09-14 20:17:42 -04:00
parent f39149d516
commit 147edf5c93
16 changed files with 115 additions and 134 deletions

View File

@@ -393,7 +393,7 @@ Only Server can create connections (using private constructor via friend access)
#### Simple Synchronous Handler
```cpp
class HttpHandler : public ConnectionHandler {
class HttpHandler : ConnectionHandler {
public:
void on_data_arrived(std::string_view data, Connection& conn) override {
// Parse HTTP request using connection's arena
@@ -410,7 +410,7 @@ public:
#### Async Handler with WeakRef
```cpp
class AsyncHandler : public ConnectionHandler {
class AsyncHandler : ConnectionHandler {
public:
void on_data_arrived(std::string_view data, Connection& conn) override {
// Get weak reference for async processing
@@ -429,7 +429,7 @@ public:
#### Batching Handler with User Data
```cpp
class BatchingHandler : public ConnectionHandler {
class BatchingHandler : ConnectionHandler {
public:
void on_connection_established(Connection &conn) override {
// Allocate some protocol-specific data and attach it to the connection
@@ -468,7 +468,7 @@ private:
#### Streaming "yes" Handler
```cpp
class YesHandler : public ConnectionHandler {
class YesHandler : ConnectionHandler {
public:
void on_connection_established(Connection &conn) override {
// Write an initial "y\n"