decorate

Function decorate 

Source
pub fn decorate(headers: &mut HeaderMap, dep: &CompiledDeprecation)
Expand description

Stamp a route’s deprecation policy onto a response (DW-048). Deprecation and Sunset REPLACE any upstream-sent values (the gateway is the source of truth for the policy it is configured to emit — the same rule as the X-RateLimit-* headers); Link is APPENDED (a list header: upstream links must survive). Unbuildable values are skipped, never panic — validation has already rejected them for publishable configs, so this is only a generation-tear backstop, the same posture as the respond-action headers.