From 4a0d339854536f65b9418c79b617bb718062905f Mon Sep 17 00:00:00 2001 From: Vegard Storheil Eriksen Date: Sun, 2 Jan 2011 16:13:15 +0100 Subject: Decoupled HTTP::Connection from handler. --- httpd.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'httpd.h') diff --git a/httpd.h b/httpd.h index 0fd601f..cee2093 100644 --- a/httpd.h +++ b/httpd.h @@ -9,8 +9,6 @@ #include namespace HTTP { - typedef boost::function Handler; - class Server { public: Server(boost::asio::io_service& io_service, const tcp::endpoint& endpoint); @@ -21,6 +19,8 @@ namespace HTTP { void start_accept(); void handle_accept(Connection::p new_connection, const boost::system::error_code& error); + void handle_request(Connection::p connection); + tcp::acceptor acceptor_; std::map handlers; -- cgit v1.2.3