Disabling gzip responses. #2220
Unanswered
lovelydinosaur
asked this question in
General
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Prompted by this comment from @bratao...
The line that's being referenced there is part of the Gzip decoding...
httpx/httpx/_decoders.py
Lines 64 to 84 in c5eb4b8
It's not particularly surprising that gzip decoding is compute heavy.
If users would like to disable gzip, brotli, and deflate compression, so that responses are not compressed, they can do so be either of these two styles...
Or...
Both of those will disable compressed responses. This will increase the bandwidth of the responses that are sent, but decrease the compute, as they no longer need to be decoded.
Beta Was this translation helpful? Give feedback.
All reactions