1.5.0
📦 starletteView on GitHub →
✨ 4 features🔧 1 symbols
Summary
This release focuses on enhancing the `GZipMiddleware` with new configuration options and improved handling of streamed and partial responses.
✨ New Features
- Added `exclude_content_types` parameter to `GZipMiddleware` to allow finer control over which content types are compressed.
- GZip output is now flushed for each streamed chunk, improving responsiveness for streaming responses.
- Compression of partial responses is now skipped in `GZipMiddleware` to avoid issues with incomplete data.
- Expanded the default excluded content types in `GZipMiddleware` to include more common types that are not typically beneficial to compress.