actix-web
actix-web copied to clipboard
add setup to compress middleware
PR Type
Feature
PR Checklist
- [x] Tests for the changes have been added / updated.
- [x] Documentation comments have been added / updated.
- [x] A changelog entry has been made for the appropriate packages.
- [x] Format code with the latest stable rustfmt.
- [x] (Team) Label with affected crates and semver status.
Overview
Add level setup for middleware::Compress
Closes #2928
It seems to me that setting one level to apply to all compression formats is not a good enough solution. We'd need a compression level setting per encoding.