Mercurial > hg > orthanc
comparison OrthancFramework/Sources/HttpServer/HttpToolbox.h @ 4326:83c5bd439fcc
fix for stone
author | Sebastien Jodogne <s.jodogne@gmail.com> |
---|---|
date | Tue, 24 Nov 2020 19:43:10 +0100 |
parents | bf7b9edf6b81 |
children | 9684a690ca63 |
comparison
equal
deleted
inserted
replaced
4325:b96aedfa8cc1 | 4326:83c5bd439fcc |
---|---|
19 * <http://www.gnu.org/licenses/>. | 19 * <http://www.gnu.org/licenses/>. |
20 **/ | 20 **/ |
21 | 21 |
22 | 22 |
23 #pragma once | 23 #pragma once |
24 | |
25 #if !defined(ORTHANC_SANDBOXED) | |
26 # error Macro ORTHANC_SANDBOXED must be defined | |
27 #endif | |
24 | 28 |
25 #include "../OrthancFramework.h" | 29 #include "../OrthancFramework.h" |
26 #include "IHttpHandler.h" | 30 #include "IHttpHandler.h" |
27 | 31 |
28 namespace Orthanc | 32 namespace Orthanc |
49 const IHttpHandler::Arguments& httpHeaders); | 53 const IHttpHandler::Arguments& httpHeaders); |
50 | 54 |
51 static void CompileGetArguments(IHttpHandler::Arguments& compiled, | 55 static void CompileGetArguments(IHttpHandler::Arguments& compiled, |
52 const IHttpHandler::GetArguments& source); | 56 const IHttpHandler::GetArguments& source); |
53 | 57 |
58 #if ORTHANC_SANDBOXED != 1 | |
54 static bool SimpleGet(std::string& result, | 59 static bool SimpleGet(std::string& result, |
55 IHttpHandler& handler, | 60 IHttpHandler& handler, |
56 RequestOrigin origin, | 61 RequestOrigin origin, |
57 const std::string& uri, | 62 const std::string& uri, |
58 const IHttpHandler::Arguments& httpHeaders); | 63 const IHttpHandler::Arguments& httpHeaders); |
75 | 80 |
76 static bool SimpleDelete(IHttpHandler& handler, | 81 static bool SimpleDelete(IHttpHandler& handler, |
77 RequestOrigin origin, | 82 RequestOrigin origin, |
78 const std::string& uri, | 83 const std::string& uri, |
79 const IHttpHandler::Arguments& httpHeaders); | 84 const IHttpHandler::Arguments& httpHeaders); |
85 #endif | |
80 }; | 86 }; |
81 } | 87 } |