diff options
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; |