We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 88411a1 commit 78c474cCopy full SHA for 78c474c
README.md
@@ -183,9 +183,9 @@ svr.set_error_handler([](const auto& req, auto& res) {
183
svr.set_pre_routing_handler([](const auto& req, auto& res) -> bool {
184
if (req.path == "/hello") {
185
res.set_content("world", "text/html");
186
- return true; // This request is handled
+ return Server::HandlerResponse::Handled;
187
}
188
- return false; // Let the router handle this request
+ return Server::HandlerResponse::Unhandled;
189
});
190
```
191
0 commit comments