Mercurial > hg > orthanc-stone
comparison Framework/Toolbox/OrthancApiClient.h @ 553:92305ee35b1c dev
web-worker consequences: give access to lower level data
author | Alain Mazy <alain@mazy.be> |
---|---|
date | Wed, 03 Apr 2019 17:38:43 +0200 |
parents | 3ae7563b4fe1 |
children | f0008c55e5f7 |
comparison
equal
deleted
inserted
replaced
545:e1ba16436d59 | 553:92305ee35b1c |
---|---|
161 | 161 |
162 virtual ~OrthancApiClient() | 162 virtual ~OrthancApiClient() |
163 { | 163 { |
164 } | 164 } |
165 | 165 |
166 const std::string& GetBaseUrl() const {return baseUrl_;} | |
167 | |
166 // schedule a GET request expecting a JSON response. | 168 // schedule a GET request expecting a JSON response. |
167 void GetJsonAsync(const std::string& uri, | 169 void GetJsonAsync(const std::string& uri, |
168 MessageHandler<JsonResponseReadyMessage>* successCallback, | 170 MessageHandler<JsonResponseReadyMessage>* successCallback, |
169 MessageHandler<IWebService::HttpRequestErrorMessage>* failureCallback = NULL, | 171 MessageHandler<IWebService::HttpRequestErrorMessage>* failureCallback = NULL, |
170 Orthanc::IDynamicObject* payload = NULL /* takes ownership */); | 172 Orthanc::IDynamicObject* payload = NULL /* takes ownership */); |