Switchboard SDK
|
Class for sending network requests. More...
#include <NetworkSession.hpp>
Public Member Functions | |
NetworkSession () | |
~NetworkSession () | |
int | makePostRequest (const std::string &url, const std::vector< std::string > &headers, const std::string &body, NetworkSessionCallback callback, void *userPointer) |
Class for sending network requests.
NetworkSession class.
switchboard::NetworkSession::NetworkSession | ( | ) |
Initializes the network session.
switchboard::NetworkSession::~NetworkSession | ( | ) |
Destructs the network session.
int switchboard::NetworkSession::makePostRequest | ( | const std::string & | url, |
const std::vector< std::string > & | headers, | ||
const std::string & | body, | ||
NetworkSessionCallback | callback, | ||
void * | userPointer ) |
Makes a POST request.
url | The destination url. |
headers | The headers for the request. |
body | The body of the request. |
callback | Callback function called with the id of the request |
userPointer | User provided pointer that will be passed back in the callback function. |