lambda-fairy / maud

:pencil: Compile-time HTML templates for Rust
https://maud.lambda.xyz
Apache License 2.0
2.09k stars 137 forks source link

Need some help with the rocket response #403

Closed olgam4 closed 9 months ago

olgam4 commented 10 months ago

Hey guys!

I'm using maud with rocket and would like to access the response generated to change its headers (and add some htmx custom headers). Could someone help me in this endeavour? I think I'm missing some rust knowledge to achieve this.

vidhanio commented 10 months ago

after handling the Result, you can still modify the inner request and add headers with Response::set_header.