The base interface class for HTTP Service CYIHTTPService.
#include <network/YiNetworkService.h>
Public Member Functions | |
virtual | ~IYINetworkService ()=default |
virtual bool | EnqueueRequest (const std::shared_ptr< CYIHTTPRequest > &pRequest)=0 |
virtual void | CancelRequest (const std::shared_ptr< CYIHTTPRequest > &pRequest)=0 |
|
virtualdefault |
|
pure virtual |
Cancels the previously enqueued HTTP request.
Implemented in CYIHTTPService.
|
pure virtual |
Queues an HTTP Request for async processing. Returns true if the request is accepted.
Connect to NotifyResponse and NotifyError on pRequest to be notified when the response is ready, or the request failed.
Implemented in CYIHTTPService.