Mercurial > hg > orthanc-stone
comparison Framework/Toolbox/OrthancApiClient.h @ 502:3ae7563b4fe1 am-touch-events
more orthancApiClient overloads
author | amazy |
---|---|
date | Mon, 25 Feb 2019 17:57:37 +0100 |
parents | a750f11892ec |
children | 92305ee35b1c |
comparison
equal
deleted
inserted
replaced
492:64d90190a08c | 502:3ae7563b4fe1 |
---|---|
199 | 199 |
200 // schedule a POST request and don't mind the response. | 200 // schedule a POST request and don't mind the response. |
201 void PostJsonAsync(const std::string& uri, | 201 void PostJsonAsync(const std::string& uri, |
202 const Json::Value& data); | 202 const Json::Value& data); |
203 | 203 |
204 // schedule a POST request and don't expect any response. | |
205 void PostJsonAsync(const std::string& uri, | |
206 const Json::Value& data, | |
207 MessageHandler<EmptyResponseReadyMessage>* successCallback, | |
208 MessageHandler<IWebService::HttpRequestErrorMessage>* failureCallback = NULL, | |
209 Orthanc::IDynamicObject* payload = NULL /* takes ownership */); | |
210 | |
211 | |
204 // schedule a POST request and don't mind the response. | 212 // schedule a POST request and don't mind the response. |
205 void PostBinaryAsync(const std::string& uri, | 213 void PostBinaryAsync(const std::string& uri, |
206 const std::string& body); | 214 const std::string& body); |
215 | |
216 // schedule a POST request and don't expect any response. | |
217 void PostBinaryAsync(const std::string& uri, | |
218 const std::string& body, | |
219 MessageHandler<EmptyResponseReadyMessage>* successCallback, | |
220 MessageHandler<IWebService::HttpRequestErrorMessage>* failureCallback = NULL, | |
221 Orthanc::IDynamicObject* payload = NULL /* takes ownership */); | |
207 | 222 |
208 // schedule a DELETE request expecting an empty response. | 223 // schedule a DELETE request expecting an empty response. |
209 void DeleteAsync(const std::string& uri, | 224 void DeleteAsync(const std::string& uri, |
210 MessageHandler<EmptyResponseReadyMessage>* successCallback, | 225 MessageHandler<EmptyResponseReadyMessage>* successCallback, |
211 MessageHandler<IWebService::HttpRequestErrorMessage>* failureCallback = NULL, | 226 MessageHandler<IWebService::HttpRequestErrorMessage>* failureCallback = NULL, |