More cleanup
This commit is contained in:
@@ -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"
|
||||
|
||||
Reference in New Issue
Block a user