comparison 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
comparison
equal deleted inserted replaced
1570:2bd2c280f9b5 1571:3232f1c995a5
44 public: 44 public:
45 typedef void (*Handler) (RestApiGetCall& call); 45 typedef void (*Handler) (RestApiGetCall& call);
46 46
47 RestApiGetCall(RestApiOutput& output, 47 RestApiGetCall(RestApiOutput& output,
48 RestApi& context, 48 RestApi& context,
49 RequestOrigin origin,
50 const char* remoteIp,
51 const char* username,
49 const IHttpHandler::Arguments& httpHeaders, 52 const IHttpHandler::Arguments& httpHeaders,
50 const IHttpHandler::Arguments& uriComponents, 53 const IHttpHandler::Arguments& uriComponents,
51 const UriComponents& trailing, 54 const UriComponents& trailing,
52 const UriComponents& fullUri, 55 const UriComponents& fullUri,
53 const IHttpHandler::Arguments& getArguments) : 56 const IHttpHandler::Arguments& getArguments) :
54 RestApiCall(output, context, httpHeaders, uriComponents, trailing, fullUri), 57 RestApiCall(output, context, origin, remoteIp, username,
58 httpHeaders, uriComponents, trailing, fullUri),
55 getArguments_(getArguments) 59 getArguments_(getArguments)
56 { 60 {
57 } 61 }
58 62
59 std::string GetArgument(const std::string& name, 63 std::string GetArgument(const std::string& name,