Switchboard SDK
|
Public Member Functions | |
virtual int | post (const std::string &url, const std::vector< std::string > &headers, const std::string &body)=0 |
virtual NetworkResponse * | process ()=0 |
virtual unsigned int | getNumberOfPendingRequests ()=0 |
|
pure virtual |
Returns the number of pending requests.
Implemented in switchboard::CURLNetworkClient.
|
pure virtual |
Adds a post request to the queue.
url | The request url. |
headers | The headers of the request. |
body | The body of the request. |
Implemented in switchboard::CURLNetworkClient.
|
pure virtual |
Processes currently active network requests in the queue. Should be periodically called from a single thread.
Implemented in switchboard::CURLNetworkClient.