Skip to main content

response_header

Attribute Macro response_header 

Source
#[response_header]
Expand description

#[response_header("name", "value")] — append a header to the response. Stacks with #[http_code] and #[redirect]; repeatable. Passthrough marker consumed by #[routes].