aboutsummaryrefslogtreecommitdiffstats
path: root/include/crow.h
diff options
context:
space:
mode:
Diffstat (limited to 'include/crow.h')
-rw-r--r--include/crow.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/include/crow.h b/include/crow.h
index 5d99b91..00209c7 100644
--- a/include/crow.h
+++ b/include/crow.h
@@ -41,6 +41,12 @@ namespace crow
{
}
+ template <typename Adaptor>
+ void handle_upgrade(const request& req, response& res, Adaptor&& adaptor)
+ {
+ router_.handle_upgrade(req, res, adaptor);
+ }
+
void handle(const request& req, response& res)
{
router_.handle(req, res);