You've already forked cpp-httplib
Updated README for cancelation feature
This commit is contained in:
@ -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.
|
||||||
}
|
}
|
||||||
);
|
);
|
||||||
```
|
```
|
||||||
|
Reference in New Issue
Block a user