Add gzip support. resolved #11

This commit is contained in:
yhirose committed 2017-12-30 00:00:43 -05:00
1 parent d1f903fc58
commit 1d5fbe6a5b
5 files changed
+128 -14

No files matched your search

+14
View File
@@ -163,6 +163,20 @@ SSLServer svr("./cert.pem", "./key.pem");
SSLClient cli("localhost", 8080);
```
Zlib Support
------------
'gzip' compression is available with `CPPHTTPLIB_ZLIB_SUPPORT`.
The server applies gzip compression to the following MIME type contents:
* all text types
* image/svg+xml
* application/javascript
* application/json
* application/xml
* application/xhtml+xml
License
-------