Connection timeout support on Client (Fixed #34)

This commit is contained in:
yhirose committed 2018-01-04 20:35:58 -05:00
1 parent 1afcc6e702
commit b7b3588afb
3 files changed
+109 -53

No files matched your search

+5
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