mirror of
https://github.com/yhirose/cpp-httplib.git
synced 2025-05-15 01:08:27 +00:00
Remome 'global timeout' to 'max timeout'
This commit is contained in:
parent
8a7c536ad5
commit
8e22a7676a
3 changed files with 52 additions and 49 deletions
|
@ -654,6 +654,9 @@ res = cli.Options("/resource/foo");
|
|||
cli.set_connection_timeout(0, 300000); // 300 milliseconds
|
||||
cli.set_read_timeout(5, 0); // 5 seconds
|
||||
cli.set_write_timeout(5, 0); // 5 seconds
|
||||
|
||||
// This method works the same as curl's `--max-timeout` option
|
||||
svr.set_max_timeout(5000); // 5 seconds
|
||||
```
|
||||
|
||||
### Receive content with a content receiver
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue