# HG changeset patch # User David Pineau # Date 1270638784 -7200 # Node ID 943a6b065db5096a5c4328c9d187e165ef5bf775 # Parent f8715c806d1c9d2d2795000471c71fee007f1846 Update de l'api diff -r f8715c806d1c -r 943a6b065db5 include/http/IRequest.hpp --- a/include/http/IRequest.hpp Sun Apr 04 19:31:02 2010 +0200 +++ b/include/http/IRequest.hpp Wed Apr 07 13:13:04 2010 +0200 @@ -31,7 +31,8 @@ virtual void setMethod(const std::string &) = 0; /** - * @brief Get the uri requested. + * @brief Get the uri requested (meaning the whole uri + * received from the client). * * @return The URI. */ @@ -45,6 +46,21 @@ virtual void setUri(const std::string & uri) = 0; /** + * @brief Get the full path of the requested resource. + * + * @return The path. + */ + virtual const std::string & getPath(void) const = 0; + + /** + * @brief Set the full path of the requested resource. + * + * @apram [in] path The new Path. + */ + virtual void setPath(const std::string & path) = 0; + + + /** * @brief Get the HTTP version. * * It has to be like: '1.1', '1.0' ...