Mercurial > hg > orthanc
comparison OrthancFramework/Sources/HttpServer/HttpToolbox.h @ 4327:9684a690ca63
fix link errors on wasm unit tests
author | Sebastien Jodogne <s.jodogne@gmail.com> |
---|---|
date | Tue, 24 Nov 2020 20:53:21 +0100 |
parents | 83c5bd439fcc |
children | 9dc0e42f868b |
comparison
equal
deleted
inserted
replaced
4326:83c5bd439fcc | 4327:9684a690ca63 |
---|---|
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 | |
28 | 24 |
29 #include "../OrthancFramework.h" | 25 #include "../OrthancFramework.h" |
30 #include "IHttpHandler.h" | 26 #include "IHttpHandler.h" |
31 | 27 |
32 namespace Orthanc | 28 namespace Orthanc |
53 const IHttpHandler::Arguments& httpHeaders); | 49 const IHttpHandler::Arguments& httpHeaders); |
54 | 50 |
55 static void CompileGetArguments(IHttpHandler::Arguments& compiled, | 51 static void CompileGetArguments(IHttpHandler::Arguments& compiled, |
56 const IHttpHandler::GetArguments& source); | 52 const IHttpHandler::GetArguments& source); |
57 | 53 |
58 #if ORTHANC_SANDBOXED != 1 | |
59 static bool SimpleGet(std::string& result, | 54 static bool SimpleGet(std::string& result, |
60 IHttpHandler& handler, | 55 IHttpHandler& handler, |
61 RequestOrigin origin, | 56 RequestOrigin origin, |
62 const std::string& uri, | 57 const std::string& uri, |
63 const IHttpHandler::Arguments& httpHeaders); | 58 const IHttpHandler::Arguments& httpHeaders); |
66 IHttpHandler& handler, | 61 IHttpHandler& handler, |
67 RequestOrigin origin, | 62 RequestOrigin origin, |
68 const std::string& uri, | 63 const std::string& uri, |
69 const void* bodyData, | 64 const void* bodyData, |
70 size_t bodySize, | 65 size_t bodySize, |
71 const IHttpHandler::Arguments& httpHeaders); | 66 const IHttpHandler::Arguments& httpHeaders); |
72 | 67 |
73 static bool SimplePut(std::string& result, | 68 static bool SimplePut(std::string& result, |
74 IHttpHandler& handler, | 69 IHttpHandler& handler, |
75 RequestOrigin origin, | 70 RequestOrigin origin, |
76 const std::string& uri, | 71 const std::string& uri, |
80 | 75 |
81 static bool SimpleDelete(IHttpHandler& handler, | 76 static bool SimpleDelete(IHttpHandler& handler, |
82 RequestOrigin origin, | 77 RequestOrigin origin, |
83 const std::string& uri, | 78 const std::string& uri, |
84 const IHttpHandler::Arguments& httpHeaders); | 79 const IHttpHandler::Arguments& httpHeaders); |
85 #endif | |
86 }; | 80 }; |
87 } | 81 } |