summaryrefslogtreecommitdiff
path: root/httpd.h
diff options
context:
space:
mode:
Diffstat (limited to 'httpd.h')
-rw-r--r--httpd.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/httpd.h b/httpd.h
index 0fd601f..cee2093 100644
--- a/httpd.h
+++ b/httpd.h
@@ -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;