pksunkara / reign

Opinionated Isomorphic Web Framework in Rust
https://reign.rs
Apache License 2.0
5 stars 3 forks source link

Add a general purpose header removal middleware #6

Open pksunkara opened 4 years ago

pksunkara commented 4 years ago

Some of middlewares nested above might add some common headers, and we might want to remove them for certain routes. (Example situation). So, we want a middleware that can remove headers from the response.

HeaderRemover::new(vec!["x-runtime"])