This commit is contained in:
yhirose committed 2020-05-26 18:34:32 -04:00
1 parent b91540514d
commit 3eaa769a2d
3 files changed
+59 -20

No files matched your search

+9 -1
View File
@@ -559,13 +559,21 @@ The server applies gzip compression to the following MIME type contents:
* application/xml
* application/xhtml+xml
### Compress content on client
### Compress request body on client
```c++
cli.set_compress(true);
res = cli.Post("/resource/foo", "...", "text/plain");
```
### Compress response body on client
```c++
cli.set_decompress(false);
res = cli.Get("/resource/foo", {{"Accept-Encoding", "gzip, deflate"}});
res->body; // Compressed data
```
Split httplib.h into .h and .cc
-------------------------------