Mercurial > hg > orthanc
comparison Core/HttpServer/HttpToolbox.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 | 5ba7471780ae |
children | 94990da8710e |
comparison
equal
deleted
inserted
replaced
1570:2bd2c280f9b5 | 1571:3232f1c995a5 |
---|---|
60 static void CompileGetArguments(IHttpHandler::Arguments& compiled, | 60 static void CompileGetArguments(IHttpHandler::Arguments& compiled, |
61 const IHttpHandler::GetArguments& source); | 61 const IHttpHandler::GetArguments& source); |
62 | 62 |
63 static bool SimpleGet(std::string& result, | 63 static bool SimpleGet(std::string& result, |
64 IHttpHandler& handler, | 64 IHttpHandler& handler, |
65 RequestOrigin origin, | |
65 const std::string& uri); | 66 const std::string& uri); |
66 | 67 |
67 static bool SimplePost(std::string& result, | 68 static bool SimplePost(std::string& result, |
68 IHttpHandler& handler, | 69 IHttpHandler& handler, |
70 RequestOrigin origin, | |
69 const std::string& uri, | 71 const std::string& uri, |
70 const char* bodyData, | 72 const char* bodyData, |
71 size_t bodySize); | 73 size_t bodySize); |
72 | 74 |
73 static bool SimplePut(std::string& result, | 75 static bool SimplePut(std::string& result, |
74 IHttpHandler& handler, | 76 IHttpHandler& handler, |
77 RequestOrigin origin, | |
75 const std::string& uri, | 78 const std::string& uri, |
76 const char* bodyData, | 79 const char* bodyData, |
77 size_t bodySize); | 80 size_t bodySize); |
78 | 81 |
79 static bool SimpleDelete(IHttpHandler& handler, | 82 static bool SimpleDelete(IHttpHandler& handler, |
83 RequestOrigin origin, | |
80 const std::string& uri); | 84 const std::string& uri); |
81 }; | 85 }; |
82 } | 86 } |