diff options
Diffstat (limited to 'http_connection.h')
-rw-r--r-- | http_connection.h | 10 |
1 files changed, 9 insertions, 1 deletions
diff --git a/http_connection.h b/http_connection.h index 9ceb8a5..23cadc6 100644 --- a/http_connection.h +++ b/http_connection.h @@ -18,14 +18,22 @@ namespace HTTP { public: typedef boost::shared_ptr<Connection> p; typedef boost::function<void (Connection::p)> Handler; + typedef std::list<std::string> PathList; + //! Start reading the request headers. void read_request(Handler callback); //! Request method. std::string method; //! Request path. - std::vector<std::string> path; + PathList path; + + //! Base path. + PathList base_path; + + //! Pop topmost element of path and add to base_path. + std::string pop_path_base(); //! Request arguments. std::map<std::string, std::string> args; |