gzip support for Vapor
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.)
.Package(url: "https://github.com/czechboy0/gzip-vapor.git", majorVersion: 0, minor: 3)
Please create an issue with a description of your problem or open a pull request with a fix.
MIT
Honza Dvorsky - http://honzadvorsky.com, @czechboy0