Mercurial > hg > orthanc-stone
comparison Platforms/Generic/WebServicePostCommand.h @ 309:14ef1227120f am-callable-and-promise
web services: better handling of failures
author | am@osimis.io |
---|---|
date | Fri, 28 Sep 2018 15:02:43 +0200 |
parents | 547e1cf7aa7b |
children | aee3d7941c9b |
comparison
equal
deleted
inserted
replaced
307:be2660b6e40a | 309:14ef1227120f |
---|---|
35 MessageHandler<IWebService::HttpRequestSuccessMessage>* successCallback, // takes ownership | 35 MessageHandler<IWebService::HttpRequestSuccessMessage>* successCallback, // takes ownership |
36 MessageHandler<IWebService::HttpRequestErrorMessage>* failureCallback, // takes ownership | 36 MessageHandler<IWebService::HttpRequestErrorMessage>* failureCallback, // takes ownership |
37 const Orthanc::WebServiceParameters& parameters, | 37 const Orthanc::WebServiceParameters& parameters, |
38 const std::string& uri, | 38 const std::string& uri, |
39 const IWebService::Headers& headers, | 39 const IWebService::Headers& headers, |
40 unsigned int timeoutInSeconds, | |
40 const std::string& body, | 41 const std::string& body, |
41 Orthanc::IDynamicObject* payload /* takes ownership */, | 42 Orthanc::IDynamicObject* payload /* takes ownership */, |
42 NativeStoneApplicationContext& context); | 43 NativeStoneApplicationContext& context); |
43 | 44 |
44 virtual void Execute(); | 45 virtual void Execute(); |