lib/curl/Easy: add constructor with URL parameter

This commit is contained in:
Max Kellermann 2019-08-19 21:19:55 +02:00
parent 07be44a50a
commit 0c8ff56a15

View File

@ -57,6 +57,11 @@ public:
throw std::runtime_error("curl_easy_init() failed");
}
explicit CurlEasy(const char *url)
:CurlEasy() {
SetURL(url);
}
/**
* Create an empty instance.
*/