curl/Easy: add SetTimeout()

This commit is contained in:
Max Kellermann 2019-08-28 10:39:59 +02:00 committed by Max Kellermann
parent c9590db188
commit 29b542fd36
1 changed files with 4 additions and 0 deletions

View File

@ -135,6 +135,10 @@ public:
SetOption(CURLOPT_CONNECTTIMEOUT, timeout);
}
void SetTimeout(long timeout) {
SetOption(CURLOPT_TIMEOUT, timeout);
}
void SetHeaderFunction(size_t (*function)(char *buffer, size_t size,
size_t nitems,
void *userdata),