lib/curl/Easy: add constructor with URL parameter
This commit is contained in:
parent
07be44a50a
commit
0c8ff56a15
@ -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.
|
||||
*/
|
||||
|
Loading…
Reference in New Issue
Block a user