diff Core/HttpServer/HttpToolbox.h @ 1571:3232f1c995a5

provide the origin of the requests to HTTP handlers
author Sebastien Jodogne <s.jodogne@gmail.com>
date Tue, 25 Aug 2015 11:04:19 +0200
parents 5ba7471780ae
children 94990da8710e
line wrap: on
line diff
--- a/Core/HttpServer/HttpToolbox.h	Sun Aug 23 11:13:03 2015 +0200
+++ b/Core/HttpServer/HttpToolbox.h	Tue Aug 25 11:04:19 2015 +0200
@@ -62,21 +62,25 @@
 
     static bool SimpleGet(std::string& result,
                           IHttpHandler& handler,
+                          RequestOrigin origin,
                           const std::string& uri);
 
     static bool SimplePost(std::string& result,
                            IHttpHandler& handler,
+                           RequestOrigin origin,
                            const std::string& uri,
                            const char* bodyData,
                            size_t bodySize);
 
     static bool SimplePut(std::string& result,
                           IHttpHandler& handler,
+                          RequestOrigin origin,
                           const std::string& uri,
                           const char* bodyData,
                           size_t bodySize);
 
     static bool SimpleDelete(IHttpHandler& handler,
+                             RequestOrigin origin,
                              const std::string& uri);
   };
 }