Mercurial > hg > orthanc
comparison OrthancServer/OrthancHttpHandler.cpp @ 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 |
---|---|
37 | 37 |
38 | 38 |
39 namespace Orthanc | 39 namespace Orthanc |
40 { | 40 { |
41 bool OrthancHttpHandler::Handle(HttpOutput& output, | 41 bool OrthancHttpHandler::Handle(HttpOutput& output, |
42 RequestOrigin origin, | |
43 const char* remoteIp, | |
44 const char* username, | |
42 HttpMethod method, | 45 HttpMethod method, |
43 const UriComponents& uri, | 46 const UriComponents& uri, |
44 const Arguments& headers, | 47 const Arguments& headers, |
45 const GetArguments& getArguments, | 48 const GetArguments& getArguments, |
46 const char* bodyData, | 49 const char* bodyData, |
49 bool found = false; | 52 bool found = false; |
50 | 53 |
51 for (Handlers::const_iterator it = handlers_.begin(); | 54 for (Handlers::const_iterator it = handlers_.begin(); |
52 it != handlers_.end() && !found; ++it) | 55 it != handlers_.end() && !found; ++it) |
53 { | 56 { |
54 found = (*it)->Handle(output, method, uri, headers, getArguments, bodyData, bodySize); | 57 found = (*it)->Handle(output, origin, remoteIp, username, method, uri, |
58 headers, getArguments, bodyData, bodySize); | |
55 } | 59 } |
56 | 60 |
57 return found; | 61 return found; |
58 } | 62 } |
59 | 63 |