Commit 47ca4246 authored by Max Kellermann's avatar Max Kellermann Committed by Max Kellermann

lib/curl/Request: add constructor with CurlEasy parameter

parent f8338d4f
......@@ -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);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment