diff options
author | Vegard Storheil Eriksen <zyp@jvnv.net> | 2011-01-02 21:22:57 +0100 |
---|---|---|
committer | Vegard Storheil Eriksen <zyp@jvnv.net> | 2011-01-02 21:45:46 +0100 |
commit | 226fd63fab4b5b605c62049c6a9d765de8d6c4db (patch) | |
tree | 541e78e6e47117dccecdb1b56b5c666132305849 /http_connection.h | |
parent | f78248234b3f284b77a35b3249ccfb526d18c871 (diff) |
Add PathList, fix path_p.
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; |