mirror of
https://github.com/yhirose/cpp-httplib.git
synced 2025-05-17 02:08:29 +00:00
Fixed README
This commit is contained in:
parent
824e7682e4
commit
084c643973
1 changed files with 1 additions and 1 deletions
|
@ -220,7 +220,7 @@ svr.set_exception_handler([](const auto& req, auto& res, std::exception &e) {
|
||||||
### Pre routing handler
|
### Pre routing handler
|
||||||
|
|
||||||
```cpp
|
```cpp
|
||||||
svr.set_pre_routing_handler([](const auto& req, auto& res) -> bool {
|
svr.set_pre_routing_handler([](const auto& req, auto& res) {
|
||||||
if (req.path == "/hello") {
|
if (req.path == "/hello") {
|
||||||
res.set_content("world", "text/html");
|
res.set_content("world", "text/html");
|
||||||
return Server::HandlerResponse::Handled;
|
return Server::HandlerResponse::Handled;
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue