Swiftpack.co -  Package - hummingbird-project/hummingbird-compression
Swiftpack.co is a collection of thousands of indexed Swift packages. Search packages.
hummingbird-project/hummingbird-compression
Compression support for Hummingbird server framework
.package(url: "https://github.com/hummingbird-project/hummingbird-compression.git", from: "0.2.0")

Hummingbird Compression

Adds request decompression and response compression to Hummingbird

Usage

let app = HBApplication()
app.addResponseCompression()
app.addRequestDecompression(limit: .none)

Adding request decompression means when a request comes in with header content-encoding set to gzip or deflate the server will attempt to decompress the request body. Adding response compression means when a request comes in with header accept-encoding set to gzip or deflate the server will compression the response body.

GitHub

link
Stars: 1
Last commit: 2 days ago

Release Notes

v0.2.0
4 days ago

Fix compile error with latest hummingbird-core

Swiftpack is being maintained by Petr Pavlik | @ptrpavlik | @swiftpackco