diff Framework/Toolbox/OrthancApiClient.h @ 424:bb573a52fc63 am-vsol-upgrade

allow POST messages with success and failure handlers
author am@osimis.io
date Wed, 21 Nov 2018 17:08:03 +0100
parents 4fe42ae3653a
children 3a8bcc45c221
line wrap: on
line diff
--- a/Framework/Toolbox/OrthancApiClient.h	Wed Nov 21 17:07:43 2018 +0100
+++ b/Framework/Toolbox/OrthancApiClient.h	Wed Nov 21 17:08:03 2018 +0100
@@ -205,6 +205,14 @@
                                  MessageHandler<IWebService::HttpRequestErrorMessage>* failureCallback = NULL,
                                  Orthanc::IDynamicObject* payload = NULL   /* takes ownership */);
 
+    // schedule a POST request and don't mind the response.
+    void PostJsonAsync(const std::string& uri,
+                       const Json::Value& data);
+
+    // schedule a POST request and don't mind the response.
+    void PostBinaryAsync(const std::string& uri,
+                         const std::string& body);
+
     // schedule a DELETE request expecting an empty response.
     void DeleteAsync(const std::string& uri,
                      MessageHandler<EmptyResponseReadyMessage>* successCallback,