diff options
author | Vegard Storheil Eriksen <zyp@jvnv.net> | 2011-01-02 16:13:15 +0100 |
---|---|---|
committer | Vegard Storheil Eriksen <zyp@jvnv.net> | 2011-01-02 16:13:15 +0100 |
commit | 4a0d339854536f65b9418c79b617bb718062905f (patch) | |
tree | c7b80fee61114197269beb37af7dc345c81336db /httpd.h | |
parent | 1ec379a805fdc4e7e076f1f59fa054bde8cf89c2 (diff) |
Decoupled HTTP::Connection from handler.
Diffstat (limited to 'httpd.h')
-rw-r--r-- | httpd.h | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -9,8 +9,6 @@ #include <boost/function.hpp> namespace HTTP { - typedef boost::function<void (Connection::p)> 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<std::string, Handler> handlers; |