Box<Handler>is to allow several different boxed handler types to be stored in the same router.
That's great! Thank you!
No, nothing built in. You could, however, use a ResponseFilter to do it. Take a look at the
filters example for something similar.
Do you mean
ResponseFilter::write? That's mostly because the headers and the status code has to be handed over to the HTTP backend, so keeping them around would also require them to be cloned. Cloning the status code is trivial in most cases, but cloning the headers can be much more expensive.
Anyway, seems like you found out why that
AnyMap is there :smile: Sure, it's a roundabout, but I'm not sure if the alternative is better.
out/mime.rs": No such file or directory (os error 2) rustful-0.8.0/src/file.rs:7 include!(concat!(env!("OUT_DIR"), "/mime.rs"));