summaryrefslogtreecommitdiff
path: root/http_connection.h
diff options
context:
space:
mode:
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);
};
};