-
Notifications
You must be signed in to change notification settings - Fork 181
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Auto decompress gzip-encoding response bodies #838
Conversation
Implements #256. If the content-encoding of a response is "gzip" and the keyword argument `decompress === true`, then we'll use CodecZlib.jl to decompress the response and set as the response body. Passing `decompress=false` will leave the resposne body as-is. We also support `HTTP.decode(::Request, "gzip")` which will do the decompression.
Codecov Report
@@ Coverage Diff @@
## master #838 +/- ##
==========================================
+ Coverage 80.56% 80.80% +0.23%
==========================================
Files 36 36
Lines 2645 2636 -9
==========================================
- Hits 2131 2130 -1
+ Misses 514 506 -8
📣 Codecov can now indicate which changes are the most critical in Pull Requests. Learn more |
Awesome, thanks Jacob!! This means that we could add https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/Accept-Encoding |
Great idea! Mind making a PR @fonsp? |
Implements #256. If the content-encoding of a response is "gzip"
and the keyword argument
decompress === true
, then we'lluse CodecZlib.jl to decompress the response and set as the response
body. Passing
decompress=false
will leave the resposne body as-is.We also support
HTTP.decode(::Request, "gzip")
which will dothe decompression.