#gzip #deflate #iron

iron-pack

Zero-configuration compression middleware for iron

3 releases (breaking)

Uses old Rust 2015

0.3.0 Feb 21, 2018
0.2.0 Jul 7, 2017
0.1.0 Jun 25, 2017

#34 in #iron

MIT license

23KB
400 lines

iron-pack

Version Documentation Build Status

Zero-configuration compression middleware for the iron web framework.

Based on libflate and brotli.

Documentation

See docs.rs

Example

See examples folder

Changelog

0.2.0

  • Enhancement: Add brotli compression support
  • Enhancement: Better selection of content encoding when multiple options exist

License

MIT


lib.rs:

Compression middleware for Iron. This crate lets you automatically compress iron responses by providing an AfterMiddleware for your iron server.

Dependencies

~12MB
~382K SLoC