From 8b58a3aecca57475fbffbd9a0a19957d42f34f36 Mon Sep 17 00:00:00 2001 From: yhirose Date: Thu, 27 Sep 2012 20:56:17 -0400 Subject: [PATCH] Added comment. --- example/hello.cc | 6 +++--- example/sample.cc | 12 ++++++------ 2 files changed, 9 insertions(+), 9 deletions(-) diff --git a/example/hello.cc b/example/hello.cc index 1e6c283..7d8d538 100644 --- a/example/hello.cc +++ b/example/hello.cc @@ -9,9 +9,9 @@ int main(void) { - HTTP_SERVER("localhost", 1234) { - GET("/hi", { - res.set_content("Hello World!"); + HTTP_SERVER("localhost", 1234) /* svr_ */ { + GET("/hi", /* req_, res_ */ { + res_.set_content("Hello World!"); }); } } diff --git a/example/sample.cc b/example/sample.cc index 9e8cce3..da6d9de 100644 --- a/example/sample.cc +++ b/example/sample.cc @@ -22,23 +22,23 @@ template void signal(int sig, Fn fn) int main(void) { const char* hi = "/hi"; - HTTP_SERVER("localhost", 1234) { - // svr, req, res + + HTTP_SERVER("localhost", 1234) /* svr_ */ { GET("/", { - res.set_redirect(hi); + res_.set_redirect(hi); }); GET("/hi", { - res.set_content("Hello World!"); + res_.set_content("Hello World!"); }); GET("/dump", { - res.set_content(dump_request(cxt)); + res_.set_content(dump_request(cxt)); }); signal(SIGINT, [&](){ - svr->stop(); + svr_->stop(); }); } }