comparison Platforms/Wasm/WasmWebService.h @ 303:ed1a4302154f am-callable-and-promise

new messages in wasm too
author am@osimis.io
date Tue, 18 Sep 2018 18:17:26 +0200
parents 3897f9f28cfa
children 14ef1227120f
comparison
equal deleted inserted replaced
302:4a79193ffb58 303:ed1a4302154f
35 broker_ = &broker; 35 broker_ = &broker;
36 } 36 }
37 37
38 void SetBaseUri(const std::string baseUri); 38 void SetBaseUri(const std::string baseUri);
39 39
40 virtual void ScheduleGetRequest(ICallback& callback, 40 virtual void GetAsync(const std::string& uri,
41 const std::string& uri,
42 const Headers& headers,
43 Orthanc::IDynamicObject* payload);
44
45 virtual void SchedulePostRequest(ICallback& callback,
46 const std::string& uri,
47 const Headers& headers,
48 const std::string& body,
49 Orthanc::IDynamicObject* payload);
50
51 virtual void GetAsync(const std::string& relativeUri,
52 const Headers& headers, 41 const Headers& headers,
53 Orthanc::IDynamicObject* payload, 42 Orthanc::IDynamicObject* payload,
54 MessageHandler<IWebService::NewHttpRequestSuccessMessage>* successCallback, 43 MessageHandler<IWebService::HttpRequestSuccessMessage>* successCallable,
55 MessageHandler<IWebService::NewHttpRequestErrorMessage>* failureCallback); 44 MessageHandler<IWebService::HttpRequestErrorMessage>* failureCallable);
45
46 virtual void PostAsync(const std::string& uri,
47 const Headers& headers,
48 const std::string& body,
49 Orthanc::IDynamicObject* payload,
50 MessageHandler<IWebService::HttpRequestSuccessMessage>* successCallable,
51 MessageHandler<IWebService::HttpRequestErrorMessage>* failureCallable);
56 52
57 virtual void Start() 53 virtual void Start()
58 { 54 {
59 } 55 }
60 56