Refactoring.

This commit is contained in:
yhirose 2012-10-03 20:11:22 -04:00
parent f91cc98b89
commit aa75fbb5f9
7 changed files with 100 additions and 79 deletions

View file

@ -18,7 +18,7 @@ Inspired by [Sinatra](http://www.sinatrarb.com/)
Server svr("localhost", 1234);
svr.get("/hi", [](Connection& c) {
c.response.set_content("Hello World!");
c.response.set_content("Hello World!", "text/plain");
});
svr.run();