diff options
author | ipknHama <ipknhama@gmail.com> | 2014-08-06 03:54:38 +0900 |
---|---|---|
committer | ipknHama <ipknhama@gmail.com> | 2014-08-06 04:07:46 +0900 |
commit | a0c93f5b84cc11b30bc6320ac26127832ef8bf7a (patch) | |
tree | dc3a51f019b99bf4b4c62201bf6c183a9fb9fa38 /example.cpp | |
parent | 88cc6079cb2ba9790a2d8bb9a5955006bfcc7a16 (diff) | |
download | crow-a0c93f5b84cc11b30bc6320ac26127832ef8bf7a.tar.gz crow-a0c93f5b84cc11b30bc6320ac26127832ef8bf7a.zip |
long polling implementation complete
change `res handle(req)' into `void handle(req, res)'
connnection::handle is divide into two part:
before and after user handler
Diffstat (limited to 'example.cpp')
-rw-r--r-- | example.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/example.cpp b/example.cpp index 57f8e09..f21a7d6 100644 --- a/example.cpp +++ b/example.cpp @@ -46,7 +46,7 @@ int main() ([](const crow::request& req, crow::response& res, int a, int b){ std::ostringstream os; os << a+b; - res.send(os.str()); + res.write(os.str()); res.end(); }); |