From 226fd63fab4b5b605c62049c6a9d765de8d6c4db Mon Sep 17 00:00:00 2001 From: Vegard Storheil Eriksen Date: Sun, 2 Jan 2011 21:22:57 +0100 Subject: Add PathList, fix path_p. --- http_connection.h | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) (limited to 'http_connection.h') 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 p; typedef boost::function Handler; + typedef std::list PathList; + //! Start reading the request headers. void read_request(Handler callback); //! Request method. std::string method; //! Request path. - std::vector 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 args; -- cgit v1.2.3