changeset 93:2ae1b144cb11

Added getAsMap method in IHeader
author Zoltan K
date Tue, 13 Apr 2010 18:29:56 +0200
parents b30c63906133
children 4f2d61a39894
files include/http/IHeader.hpp
diffstat 1 files changed, 9 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/include/http/IHeader.hpp	Mon Apr 12 22:03:36 2010 +0200
+++ b/include/http/IHeader.hpp	Tue Apr 13 18:29:56 2010 +0200
@@ -65,6 +65,15 @@
                  * @param [in] k The key to delete.
                  */
                 virtual void                deleteKey(const Key & k) = 0;
+
+                /**
+                 * @brief Get http headers in an std::map
+                 *
+                 * @return A std::map of @ref Key / @ref Value containing
+                 * the http headers.
+                 */
+                virtual const std::map<Key, Value> &    getAsMap(void) const = 0;
+
             };
         };
     };