-
Notifications
You must be signed in to change notification settings - Fork 1.3k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add ability to compress request body (#989)
This adds `compression` param to all http methods with that will compress the body set the correct `Content-Encoding` and `Content-Length` and will send the request with the compressed body. The current compressions supported are `gzip` and `deflate` and their combinations separated by a comma (`,`). If Content-Length of Content-Encoding has been set manually by the user, they won't be reset but instead a warning will be printed.
- Loading branch information
Showing
6 changed files
with
402 additions
and
15 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
Oops, something went wrong.