diff Core/RestApi/RestApi.h @ 212:f276b175dcaf

delete resources
author Sebastien Jodogne <s.jodogne@gmail.com>
date Thu, 29 Nov 2012 10:13:49 +0100
parents 96b7918a6a18
children c07170f3f4f7
line wrap: on
line diff
--- a/Core/RestApi/RestApi.h	Thu Nov 29 09:56:46 2012 +0100
+++ b/Core/RestApi/RestApi.h	Thu Nov 29 10:13:49 2012 +0100
@@ -63,16 +63,6 @@
         return *context_;
       }
     
-      const HttpHandler::Arguments& GetHttpHeaders() const
-      {
-        return *httpHeaders_;
-      }
-
-      const RestApiPath::Components& GetUriComponents() const
-      {
-        return *uriComponents_;
-      }
-
       const UriComponents& GetTrailing() const
       {
         return *trailing_;
@@ -83,6 +73,12 @@
       {
         return HttpHandler::GetArgument(*uriComponents_, name, defaultValue);
       }
+
+      std::string GetHttpHeader(const std::string& name,
+                                const std::string& defaultValue)
+      {
+        return HttpHandler::GetArgument(*httpHeaders_, name, defaultValue);
+      }
     };