lib/curl/Request: add constructor with CurlEasy parameter
This commit is contained in:
parent
9e18aafccc
commit
cdcef49eef
@ -45,6 +45,13 @@
|
|||||||
|
|
||||||
#include <string.h>
|
#include <string.h>
|
||||||
|
|
||||||
|
CurlRequest::CurlRequest(CurlGlobal &_global, CurlEasy _easy,
|
||||||
|
CurlResponseHandler &_handler)
|
||||||
|
:global(_global), handler(_handler), easy(std::move(_easy))
|
||||||
|
{
|
||||||
|
SetupEasy();
|
||||||
|
}
|
||||||
|
|
||||||
CurlRequest::CurlRequest(CurlGlobal &_global,
|
CurlRequest::CurlRequest(CurlGlobal &_global,
|
||||||
CurlResponseHandler &_handler)
|
CurlResponseHandler &_handler)
|
||||||
:global(_global), handler(_handler)
|
:global(_global), handler(_handler)
|
||||||
|
@ -67,9 +67,9 @@ class CurlRequest final {
|
|||||||
bool registered = false;
|
bool registered = false;
|
||||||
|
|
||||||
public:
|
public:
|
||||||
/**
|
CurlRequest(CurlGlobal &_global, CurlEasy easy,
|
||||||
* To start sending the request, call Start().
|
CurlResponseHandler &_handler);
|
||||||
*/
|
|
||||||
CurlRequest(CurlGlobal &_global,
|
CurlRequest(CurlGlobal &_global,
|
||||||
CurlResponseHandler &_handler);
|
CurlResponseHandler &_handler);
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user