mirror of
https://github.com/apple/swift-nio-extras.git
synced 2025-05-14 00:42:41 +08:00
### Motivation: There will be times when a client wishes to send larger requests with gzipped bodies to save on network traffic. This PR adds a `NIOHTTPRequestDecompressor` which can be added to the server's channel pipeline so those requests are automatically inflated. ### Modifications: - Added a `CNIOExtrasZlib_voidPtr_to_BytefPtr` C method. - Added a `NIOHTTPRequestDecompressor` type. - Added a `HTTPResponseDecompressorTest` test case. ### Result: Now you don't have to manually check the `Content-Encoding` header and decompress the body on each incoming request.
9 lines
92 B
Plaintext
9 lines
92 B
Plaintext
.DS_Store
|
|
/.build
|
|
/Packages
|
|
/*.xcodeproj
|
|
Package.pins
|
|
*.pem
|
|
/docs
|
|
Package.resolved
|
|
.swiftpm/ |