Commit 409002b1 authored by Max Kellermann's avatar Max Kellermann Committed by Max Kellermann

curl/Easy: add Perform()

parent 29b542fd
......@@ -187,6 +187,12 @@ public:
: -1;
}
void Perform() {
CURLcode code = curl_easy_perform(handle);
if (code != CURLE_OK)
throw std::runtime_error(curl_easy_strerror(code));
}
bool Unpause() noexcept {
return ::curl_easy_pause(handle, CURLPAUSE_CONT) == CURLE_OK;
}
......
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