MPD
0.20.6
|
#include <Request.hxx>
Data Structures | |
struct | Pause |
CurlResponseHandler::OnData() shall throw this to pause the stream. More... | |
Public Member Functions | |
CurlRequest (CurlGlobal &_global, const char *url, CurlResponseHandler &_handler) | |
To start sending the request, call Start(). More... | |
~CurlRequest () | |
CurlRequest (const CurlRequest &)=delete | |
CurlRequest & | operator= (const CurlRequest &)=delete |
void | Start () |
Register this request via CurlGlobal::Add(), which starts the request. More... | |
void | Stop () |
Unregister this request via CurlGlobal::Remove(). More... | |
CURL * | Get () |
template<typename T > | |
void | SetOption (CURLoption option, T value) |
void | Resume () |
void | Done (CURLcode result) |
A HTTP request is finished. More... | |
Definition at line 44 of file Request.hxx.
CurlRequest::CurlRequest | ( | CurlGlobal & | _global, |
const char * | url, | ||
CurlResponseHandler & | _handler | ||
) |
To start sending the request, call Start().
CurlRequest::~CurlRequest | ( | ) |
|
delete |
void CurlRequest::Done | ( | CURLcode | result | ) |
A HTTP request is finished.
Called by CurlGlobal.
|
inline |
Definition at line 101 of file Request.hxx.
|
delete |
void CurlRequest::Resume | ( | ) |
|
inline |
Definition at line 106 of file Request.hxx.
void CurlRequest::Start | ( | ) |
Register this request via CurlGlobal::Add(), which starts the request.
This method must be called in the event loop thread.
void CurlRequest::Stop | ( | ) |
Unregister this request via CurlGlobal::Remove().
This method must be called in the event loop thread.