All Projects → vapor-community → gzip-provider

vapor-community / gzip-provider

Licence: MIT License
gzip support for Vapor

Programming Languages

swift
15916 projects

gzip-vapor

Build Status Platforms Package Managers

gzip support for Vapor

Usage

When setting up your Vapor Droplet, just add this line for the server to automatically send responses gzipped (if the client declares support for it).

drop.middleware.append(GzipServerMiddleware())

(Also contains a GzipClientMiddleware for when Vapor support Client middlewares.)

Installation

Swift Package Manager

.Package(url: "https://github.com/czechboy0/gzip-vapor.git", majorVersion: 0, minor: 3)

💝 Contributing

Please create an issue with a description of your problem or open a pull request with a fix.

✌️ License

MIT

👽 Author

Honza Dvorsky - http://honzadvorsky.com, @czechboy0

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].