Update README

This commit is contained in:
yhirose authored and GitHub committed 2020-08-03 23:37:05 -04:00
1 parent 04002d57bd
commit dfec2de5b5
1 file changed
+7
+7
View File
@@ -311,6 +311,13 @@ httplib::Headers headers = {
}; };
auto res = cli.Get("/hi", headers); auto res = cli.Get("/hi", headers);
``` ```
or
```c++
cli.set_default_headers({
{ "Accept-Encoding", "gzip, deflate" }
});
auto res = cli.Get("/hi");
```
### POST ### POST