1
0
mirror of synced 2025-07-27 23:41:48 +03:00

Changed test and README to use the generic lambda.

This commit is contained in:
yhirose
2014-03-31 21:07:56 -04:00
parent 5c01c69223
commit 98e3e7b3c1
3 changed files with 10 additions and 10 deletions

View File

@ -20,7 +20,7 @@ Inspired by [Sinatra](http://www.sinatrarb.com/) and [express](https://github.co
Server svr;
svr.get("/hi", [](const Request& req, Response& res) {
svr.get("/hi", [](const auto& req, auto& res) {
res.set_content("Hello World!", "text/plain");
});
@ -43,4 +43,4 @@ Client Example
}
}
Copyright (c) 2012 Yuji Hirose. All rights reserved.
Copyright (c) 2014 Yuji Hirose. All rights reserved.