hummingbird-compression

1.3.0

Compression support for Hummingbird server framework
hummingbird-project/hummingbird-compression

What's New

v1.3.0

2023-07-12T09:52:48Z

Minor release changes

  • Update to using compress-nio v1.0.0

Hummingbird Compression

Adds request decompression and response compression to Hummingbird

Usage

let router = Router()
router.middlewares.add(RequestDecompressionMiddleware())
router.middlewares.add(ResponseCompressionMiddleware(minimumResponseSizeToCompress: 512))

Adding request decompression middleware 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.

Description

  • Swift Tools 5.9.0
View More Packages from this Author

Dependencies

Last updated: Wed May 22 2024 12:27:45 GMT-0900 (Hawaii-Aleutian Daylight Time)