comparison Core/RestApi/RestApiDeleteCall.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
41 public: 41 public:
42 typedef void (*Handler) (RestApiDeleteCall& call); 42 typedef void (*Handler) (RestApiDeleteCall& call);
43 43
44 RestApiDeleteCall(RestApiOutput& output, 44 RestApiDeleteCall(RestApiOutput& output,
45 RestApi& context, 45 RestApi& context,
46 RequestOrigin origin,
47 const char* remoteIp,
48 const char* username,
46 const IHttpHandler::Arguments& httpHeaders, 49 const IHttpHandler::Arguments& httpHeaders,
47 const IHttpHandler::Arguments& uriComponents, 50 const IHttpHandler::Arguments& uriComponents,
48 const UriComponents& trailing, 51 const UriComponents& trailing,
49 const UriComponents& fullUri) : 52 const UriComponents& fullUri) :
50 RestApiCall(output, context, httpHeaders, uriComponents, trailing, fullUri) 53 RestApiCall(output, context, origin, remoteIp, username,
54 httpHeaders, uriComponents, trailing, fullUri)
51 { 55 {
52 } 56 }
53 57
54 virtual bool ParseJsonRequest(Json::Value& result) const 58 virtual bool ParseJsonRequest(Json::Value& result) const
55 { 59 {