comparison Core/RestApi/RestApiPostCall.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 8dc80ba768aa
children b1291df2f780
comparison
equal deleted inserted replaced
1570:2bd2c280f9b5 1571:3232f1c995a5
45 public: 45 public:
46 typedef void (*Handler) (RestApiPostCall& call); 46 typedef void (*Handler) (RestApiPostCall& call);
47 47
48 RestApiPostCall(RestApiOutput& output, 48 RestApiPostCall(RestApiOutput& output,
49 RestApi& context, 49 RestApi& context,
50 RequestOrigin origin,
51 const char* remoteIp,
52 const char* username,
50 const IHttpHandler::Arguments& httpHeaders, 53 const IHttpHandler::Arguments& httpHeaders,
51 const IHttpHandler::Arguments& uriComponents, 54 const IHttpHandler::Arguments& uriComponents,
52 const UriComponents& trailing, 55 const UriComponents& trailing,
53 const UriComponents& fullUri, 56 const UriComponents& fullUri,
54 const char* bodyData, 57 const char* bodyData,
55 size_t bodySize) : 58 size_t bodySize) :
56 RestApiCall(output, context, httpHeaders, uriComponents, trailing, fullUri), 59 RestApiCall(output, context, origin, remoteIp, username,
60 httpHeaders, uriComponents, trailing, fullUri),
57 bodyData_(bodyData), 61 bodyData_(bodyData),
58 bodySize_(bodySize) 62 bodySize_(bodySize)
59 { 63 {
60 } 64 }
61 65