Updated README for cancelation feature
This commit is contained in:
parent
f4981459b3
commit
48b47ef209
@ -166,6 +166,7 @@ std::shared_ptr<httplib::Response> res =
|
|||||||
printf("%lld / %lld bytes => %d%% complete\n",
|
printf("%lld / %lld bytes => %d%% complete\n",
|
||||||
len, total,
|
len, total,
|
||||||
(int)((len/total)*100));
|
(int)((len/total)*100));
|
||||||
|
return true; // return 'false' if you want to cancel the request.
|
||||||
}
|
}
|
||||||
);
|
);
|
||||||
```
|
```
|
||||||
|
Loading…
x
Reference in New Issue
Block a user