mirror of
https://github.com/yhirose/cpp-httplib.git
synced 2026-11-21 20:01:46 +00:00
Changed test and README to use the generic lambda.
This commit is contained in:
1 parent
5c01c69223
commit
98e3e7b3c1
3 files changed
+10
-10
No files matched your search
@@ -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.
|
||||
Reference in new issue
Block a user