changeset 82:943a6b065db5

Update de l'api
author David Pineau <dav.pineau@gmail.com>
date Wed, 07 Apr 2010 13:13:04 +0200
parents f8715c806d1c
children be22011b3843
files include/http/IRequest.hpp
diffstat 1 files changed, 17 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- 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' ...