[CHA-2964] gzip request and response#259
Conversation
|
Caution Review failedThe pull request is closed. ℹ️ Recent review info⚙️ Run configurationConfiguration used: defaults Review profile: CHILL Plan: Pro Run ID: 📒 Files selected for processing (2)
Disabled knowledge base sources:
📝 WalkthroughWalkthroughThe PR adds automatic gzip support to the Stream SDK's HTTP clients. ChangesGzip content encoding support
🎯 2 (Simple) | ⏱️ ~10 minutes
✨ Finishing Touches📝 Generate docstrings
🧪 Generate unit tests (beta)
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
Summary
Accept-Encoding: gzipto the SDK's defaulthttpx.Clientandhttpx.AsyncClient(sync + async parity).Content-Encoding: gzipresponses — no additional decode code needed.http_client) is untouched.Spec
Test plan
tests/test_gzip.py: 5 tests covering sync + async request header + sync + async response decode + escape-hatch regression guard. All pass locally.Summary by CodeRabbit
Release Notes