Add concept of route yielding

This commit is contained in:
Alex Hultman
2019-01-22 18:30:25 +01:00
parent ed4e9f5c45
commit 9829f7fb37
4 changed files with 19 additions and 6 deletions
+2 -2
View File
@@ -217,8 +217,8 @@ public:
/* We do not need to check for any close or shutdown here as we immediately return from get handler */
} else {
/* For now we do not support having HTTP and websocket routes on the same URL */
res->close();
/* Tell the router that we did not handle this request */
req->setYield(true);
}
}));
}