![]() | InDesign SDK 20.5 |
Public Types | |
| typedef std::function< void(IDHTTPRequest &request, uxtech::network::HttpResult result)> | AsyncIDHttpRequestNotifier |
Public Member Functions | |
| virtual void | SetUrl (const std::string url) |
| virtual void | SetMethod (const std::string method) |
| virtual std::string | GetUrl () |
| virtual std::string | GetMethod () |
| virtual void | ExecuteAsync (const AsyncIDHttpRequestNotifier ¬ifier, const uxtech::thread::QueuePtr &threadqueue) |
| virtual uxtech::network::HttpResult | ExecuteSync () |
Static Public Member Functions | |
| static void | CleanupOnShutdown () |
| virtual |
Execute the HTTP request in an asynchronous manner once it has been set up. This function returns immediately. Care must be taken so that IDHTTPREquest is not destroyed by the time the http request actually completes.
| notifier | [IN] A reference to the callback function that will be called on request completion. |
| threadqueue | [IN] A reference to the queue object in which this asynchronous task will be scheduled. |
| virtual |
Execute the HTTP request in an asynchronous manner once it has been set up. Returns the corresponding response code, i.e. 200 OK or 404 NOT FOUND etc. For asynchronous implementation use ExecuteAsync.
| inlinevirtual |
Gets the Method(GET,POST,etc) for HTTP calls
| inlinevirtual |
Gets the url for HTTP call
| inlinevirtual |
Sets the Method(GET,POST,etc) for HTTP call
| method | [IN] method for HTTP call |
| inlinevirtual |
Sets the Url for HTTP call
| url | [IN] url for HTTP call |