7#ifndef __HDI_CORE_INTERNET_GET__
8#define __HDI_CORE_INTERNET_GET__
186 plat::InternetGET* __impl;
Base class for templated __Callback class.
Definition: hdicoreCallback.h:68
Allows for the creation of simple HTTP(S) GET clients to acquire data from a given URL.
Definition: hdicoreInternetGET.h:29
virtual bool asynchronous() const
Gets whether the target object is asynchronous (i.e. executes in a background thread)
virtual std::string error() const
Gets an error description if the GET request failed.
static InternetGET * Async(const std::string &url_, const Callback &success_, const Callback &failure_)
Creates an asynchronous (non-blocking) InternetGET object to perform HTTP(S) GET requests.
virtual int32_t platformErrorCode() const
Gets the raw platform error code that was received by the implementation.
virtual void run()
Starts the GET request.
virtual bool running() const
Gets whether the GET request is currently running.
virtual std::string content() const
Gets the content acquired via the GET request.
virtual ~InternetGET()
Destructs an InternetGET object.
virtual InternetError errorCode() const
Gets a translated platform error code, if possible, that was received by the implementation.
static InternetGET * Async(const std::string &url_)
Creates an asynchronous (non-blocking) InternetGET object to perform HTTP(S) GET requests,...
InternetGET(const std::string &url_, const Callback &success_, const Callback &failure_)
Creates a synchronous (blocking) InternetGET object to perform HTTP(S) GET requests.
InternetGET(const std::string &url_)
Creates a synchronous (blocking) InternetGET object to perform HTTP(S) GET requests,...
Header file for a wide variety of necessary typedefs, enums, and forwards declarations.
InternetError
Describes common HTTP error codes between platforms, for convenience.
Definition: hdicoreTypes.h:922