curl/Easy: add Perform()
This commit is contained in:
parent
29b542fd36
commit
409002b1c3
@ -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;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user