You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
- If a "Content-Length" header is set, that will be used to determine whether to compress based on the given min length.
90
+
- If no "Content-Length" header is set, a buffer is used to temporarily store writes until the min length is met or the request completes.
91
+
- Setting a high min length will result in more buffering (2048 bytes is a recommended default for most cases)
92
+
- The handler performs optimizations to avoid unnecessary operations, such as testing if `len(data)` exceeds min length before writing to the buffer, and reusing buffers between requests.
0 commit comments