mirror of
https://github.com/yhirose/cpp-httplib.git
synced 2025-05-15 01:08:27 +00:00
Removed compress
parameter and added compress
method on client
This commit is contained in:
parent
e5827ad16f
commit
afd6d5f9dc
3 changed files with 77 additions and 94 deletions
|
@ -423,6 +423,13 @@ The server applies gzip compression to the following MIME type contents:
|
|||
* application/xml
|
||||
* application/xhtml+xml
|
||||
|
||||
### Compress content on client
|
||||
|
||||
```c++
|
||||
cli.compress(true);
|
||||
res = cli.Post("/resource/foo", "...", "text/plain");
|
||||
```
|
||||
|
||||
NOTE
|
||||
----
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue