diff Core/HttpServer/HttpToolbox.h @ 1447:5ba7471780ae

refactoring: HttpToolbox, DumpJson in Lua
author Sebastien Jodogne <s.jodogne@gmail.com>
date Wed, 01 Jul 2015 17:42:06 +0200
parents f3672356c121
children 3232f1c995a5
line wrap: on
line diff
--- a/Core/HttpServer/HttpToolbox.h	Wed Jul 01 13:16:12 2015 +0200
+++ b/Core/HttpServer/HttpToolbox.h	Wed Jul 01 17:42:06 2015 +0200
@@ -60,8 +60,23 @@
     static void CompileGetArguments(IHttpHandler::Arguments& compiled,
                                     const IHttpHandler::GetArguments& source);
 
-    static bool SimpleGet(std::string& output,
+    static bool SimpleGet(std::string& result,
                           IHttpHandler& handler,
                           const std::string& uri);
+
+    static bool SimplePost(std::string& result,
+                           IHttpHandler& handler,
+                           const std::string& uri,
+                           const char* bodyData,
+                           size_t bodySize);
+
+    static bool SimplePut(std::string& result,
+                          IHttpHandler& handler,
+                          const std::string& uri,
+                          const char* bodyData,
+                          size_t bodySize);
+
+    static bool SimpleDelete(IHttpHandler& handler,
+                             const std::string& uri);
   };
 }