Better API names

This commit is contained in:
yhirose 2019-12-13 06:56:00 -05:00
parent afd6d5f9dc
commit 72b20c08da
3 changed files with 18 additions and 18 deletions

View file

@ -387,7 +387,7 @@ httplib::Client cli("yahoo.com");
auto res = cli.Get("/");
res->status; // 301
cli.follow_location(true);
cli.set_follow_location(true);
res = cli.Get("/");
res->status; // 200
```
@ -426,7 +426,7 @@ The server applies gzip compression to the following MIME type contents:
### Compress content on client
```c++
cli.compress(true);
cli.set_compress(true);
res = cli.Post("/resource/foo", "...", "text/plain");
```