From 9a5138ce981697e243fa0de2bc2668eaa80efb76 Mon Sep 17 00:00:00 2001 From: Vegard Storheil Eriksen Date: Fri, 31 Dec 2010 00:09:06 +0100 Subject: Hacked stuff to work again. --- http_connection.h | 17 +++++++++-------- 1 file changed, 9 insertions(+), 8 deletions(-) (limited to 'http_connection.h') 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 p; + + void start(); + //! Request method. std::string method; @@ -35,14 +43,7 @@ namespace HTTP { //! Request headers. std::map headers; - - //! Parse request headers. - bool parse_request(boost::asio::streambuf& buf); - - public: - typedef boost::shared_ptr p; - - void start(); + static void foo_handler(Connection::p connection); }; }; -- cgit v1.2.3