Replies: 1 comment 2 replies
-
|
Hi there, As a quick workaround, you can always put nginx in front of this (or any other) framework with gzip enabled. A reverse proxy with nginx (or something else) is typically trivial to setup and operate. That being said, I can't think of a reason why we wouldn't add support for compression. The crate for this I reckon would probably be Rwf middleware supports modifying both requests and responses. The latter isn't well documented, but there are examples in the code, e.g. Cheers! |
Beta Was this translation helpful? Give feedback.

Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Are there plans to allow response compression out of the box? As an example of what I mean, I've used this middleware in small projects that use axum and allow tower HTTP middleware.
The result would be that you get headers like this on your big HTML responses:
I was very impressed with the feature list on this framework out of the box and low dependency count (anything to help rust compilation times 😩). The one random side project I like to rewrite to test out frameworks like this just happens to benefit from compression, since it targets mobile devices and has a beefy HTML landing page. So I thought to ask. No worries if it's out of scope.
Beta Was this translation helpful? Give feedback.
All reactions