Axum HTML minifier Middleware
This crate allows you to includes a custom middleware that minify HTML outcome of a Response in your axum application. The middleware intercepts responses body and minify the entire content. So, we can send fewer packets to the client and increase our throughput.
Usage
Then add html_minifier in your middleware layer, for example:
use ;
async
Example
When visiting http://127.0.0.1:3000/
, the response will show you the comparison between a raw response and a minified response with this crate.
License
This project is licensed under the GPLv3 License. See the LICENSE file for details.