summaryrefslogtreecommitdiff
path: root/httpd.h
diff options
context:
space:
mode:
authorVegard Storheil Eriksen <zyp@jvnv.net>2011-01-02 16:13:15 +0100
committerVegard Storheil Eriksen <zyp@jvnv.net>2011-01-02 16:13:15 +0100
commit4a0d339854536f65b9418c79b617bb718062905f (patch)
treec7b80fee61114197269beb37af7dc345c81336db /httpd.h
parent1ec379a805fdc4e7e076f1f59fa054bde8cf89c2 (diff)
Decoupled HTTP::Connection from handler.
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;