diff options
author | Vegard Storheil Eriksen <zyp@jvnv.net> | 2010-12-31 00:09:06 +0100 |
---|---|---|
committer | Vegard Storheil Eriksen <zyp@jvnv.net> | 2010-12-31 00:09:06 +0100 |
commit | 9a5138ce981697e243fa0de2bc2668eaa80efb76 (patch) | |
tree | 9c177496360871ecb4751ef894762d43b31a5897 /http_connection.h | |
parent | f1d6b1400f5192ef97f84ab4fd7ce83a60168dba (diff) |
Hacked stuff to work again.
Diffstat (limited to 'http_connection.h')
-rw-r--r-- | http_connection.h | 17 |
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); }; }; |