1
0
mirror of synced 2025-07-27 23:41:48 +03:00

Connection timeout support on Client (Fixed #34)

This commit is contained in:
yhirose
2017-12-30 14:47:55 -05:00
parent 1afcc6e702
commit b7b3588afb
3 changed files with 109 additions and 53 deletions

View File

@ -118,6 +118,11 @@ params["note"] = "coder";
auto res = cli.post("/post", params);
```
### Connection Timeout
```c++
httplib::Client cli("localhost", 8080, 5); // timeouts in 5 seconds
```
### With Progress Callback
```cpp