7#ifndef __HDI_CORE_INTERNET_POST__
8#define __HDI_CORE_INTERNET_POST__
61 const std::string& url_,
114 const std::string& url_,
210 plat::InternetPOST* __impl;
Base class for templated __Callback class.
Definition: hdicoreCallback.h:68
Acts as a dictionary-style container to store any other persistent data types, including arrays and d...
Definition: hdicoreDictionaryPref.h:60
Allows for the creation of simple HTTP(S) POST clients to post to, and acquire data from,...
Definition: hdicoreInternetPOST.h:30
virtual bool asynchronous() const
Gets whether the target object is asynchronous (i.e. executes in a background thread)
virtual void run()
Starts the POST request.
virtual InternetError errorCode() const
Gets a translated platform error code, if possible, that was received by the implementation.
virtual bool running() const
Gets whether the POST request is currently running.
static InternetPOST * Async(const std::string &url_, const DictionaryPref &data_, const Callback &success_, const Callback &failure_)
Creates an asynchronous (non-blocking) InternetPOST object to perform HTTP(S) POST requests.
static InternetPOST * Async(const std::string &url_, const DictionaryPref &data_)
Creates an asynchronous (non-blocking) InternetPOST object to perform HTTP(S) POST requests.
virtual int32_t platformErrorCode() const
Gets the raw platform error code that was received by the implementation.
virtual std::string error() const
Gets an error description if the POST request failed.
InternetPOST(const std::string &url_, const DictionaryPref &data_, const Callback &success_, const Callback &failure_)
Creates a synchronous (blocking) InternetPOST object to perform HTTP(S) POST requests.
InternetPOST(const std::string &url_, const DictionaryPref &data_)
Creates a synchronous (blocking) InternetPOST object to perform HTTP(S) POST requests,...
virtual ~InternetPOST()
Destructs an InternetPOST object.
virtual std::string content() const
Gets the content acquired via the POST request.
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