mirror of
https://github.com/apple/swift-nio-extras.git
synced 2025-06-01 10:36:15 +08:00
### Motivation: Many HTTP servers can send compressed responses to clients and it would be a great feature for `AsyncHTTPClient` to support it. But since we want to minizime usage of unsafe APIs in SSWG projects, I propose to consolidate interfacing with zlib to `nio-extras` since it already supports `zlib` compression. ### Modifications: Added `HTTPResponseDecompressor` and accompanying tests ### Result: Users (primarily `AsyncHTTPClient`) can now provide automatic response decompression support.