summaryrefslogtreecommitdiff
path: root/http_connection.h
diff options
context:
space:
mode:
authorVegard Storheil Eriksen <zyp@jvnv.net>2010-12-31 00:09:06 +0100
committerVegard Storheil Eriksen <zyp@jvnv.net>2010-12-31 00:09:06 +0100
commit9a5138ce981697e243fa0de2bc2668eaa80efb76 (patch)
tree9c177496360871ecb4751ef894762d43b31a5897 /http_connection.h
parentf1d6b1400f5192ef97f84ab4fd7ce83a60168dba (diff)
Hacked stuff to work again.
Diffstat (limited to 'http_connection.h')
-rw-r--r--http_connection.h17
1 files changed, 9 insertions, 8 deletions
diff --git a/http_connection.h b/http_connection.h
index b6d6e27..8322721 100644
--- a/http_connection.h
+++ b/http_connection.h
@@ -20,6 +20,14 @@ namespace HTTP {
tcp::socket socket;
boost::asio::streambuf buf;
+ //! Parse request headers.
+ bool parse_request(boost::asio::streambuf& buf);
+
+ public:
+ typedef boost::shared_ptr<Connection> p;
+
+ void start();
+
//! Request method.
std::string method;
@@ -35,14 +43,7 @@ namespace HTTP {
//! Request headers.
std::map<std::string, std::string> headers;
-
- //! Parse request headers.
- bool parse_request(boost::asio::streambuf& buf);
-
- public:
- typedef boost::shared_ptr<Connection> p;
-
- void start();
+ static void foo_handler(Connection::p connection);
};
};