Removed Connection class.

This commit is contained in:
yhirose 2012-10-12 16:09:39 -04:00
parent 44a682cd3e
commit e8a18ad447
5 changed files with 107 additions and 105 deletions

View file

@ -10,13 +10,13 @@ using namespace httplib;
int main(void)
{
Server svr("localhost", 1234);
Server svr;
svr.get("/hi", [](Connection& c) {
c.response.set_content("Hello World!", "text/plain");
svr.get("/hi", [](const Request& req, Response& res) {
res.set_content("Hello World!", "text/plain");
});
svr.run();
svr.listen("localhost", 1234);
}
// vim: et ts=4 sw=4 cin cino={1s ff=unix