Renamed Context to Connection. Removed DSL macro.

This commit is contained in:
yhirose 2012-09-27 21:05:36 -04:00
parent 6897c64c74
commit ced9c38339
5 changed files with 53 additions and 57 deletions

View file

@ -55,8 +55,8 @@ TEST(ServerTest, GetMethod)
{
Server svr("localhost", 1914);
svr.get("hi", [&](httplib::Context& cxt) {
cxt.response.set_content("Hello World!");
svr.get("hi", [&](httplib::Connection& c) {
c.response.set_content("Hello World!");
});
svr.on_ready([&]() {