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