diff Core/RestApi/RestApiGetCall.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 f3672356c121
children b1291df2f780
line wrap: on
line diff
--- a/Core/RestApi/RestApiGetCall.h	Sun Aug 23 11:13:03 2015 +0200
+++ b/Core/RestApi/RestApiGetCall.h	Tue Aug 25 11:04:19 2015 +0200
@@ -46,12 +46,16 @@
 
     RestApiGetCall(RestApiOutput& output,
                    RestApi& context,
+                   RequestOrigin origin,
+                   const char* remoteIp,
+                   const char* username,
                    const IHttpHandler::Arguments& httpHeaders,
                    const IHttpHandler::Arguments& uriComponents,
                    const UriComponents& trailing,
                    const UriComponents& fullUri,
                    const IHttpHandler::Arguments& getArguments) :
-      RestApiCall(output, context, httpHeaders, uriComponents, trailing, fullUri),
+      RestApiCall(output, context, origin, remoteIp, username, 
+                  httpHeaders, uriComponents, trailing, fullUri),
       getArguments_(getArguments)
     {
     }