mirror of
https://github.com/yhirose/cpp-httplib.git
synced 2025-05-15 01:08:27 +00:00
Better API names
This commit is contained in:
parent
afd6d5f9dc
commit
72b20c08da
3 changed files with 18 additions and 18 deletions
|
@ -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");
|
||||
```
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue