Commit 0c8ff56a authored by Max Kellermann's avatar Max Kellermann

lib/curl/Easy: add constructor with URL parameter

parent 07be44a5
......@@ -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.
*/
......
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