diff options
author | ipknHama <ipknhama@gmail.com> | 2016-08-28 14:46:31 +0900 |
---|---|---|
committer | ipknHama <ipknhama@gmail.com> | 2016-08-28 14:46:31 +0900 |
commit | 967adf0de55afcb52881cdb1a7b16788c7c283db (patch) | |
tree | dbe4fe620a136bdb462a4ad29e83d6d699b3b447 /include/crow.h | |
parent | 45f6d12fd382662675000fb1c60909287733127c (diff) | |
download | crow-967adf0de55afcb52881cdb1a7b16788c7c283db.tar.gz crow-967adf0de55afcb52881cdb1a7b16788c7c283db.zip |
Add websocket feature
Diffstat (limited to 'include/crow.h')
-rw-r--r-- | include/crow.h | 6 |
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); |