pub fn stamp_correlation_id(resp: &mut HttpResponse, id: &str)Expand description
Stamp resp with the correlation-id header (canonical casing), IN PLACE.
Shared by both tiers so the header they emit is identical. A handler-set
X-Correlation-Id (any casing) is replaced — the lifecycle owns this header
exactly as the wire writer owns the framing headers.
The value is sanitized (CR/LF/NUL stripped) as defense in depth: the wire parser already rejects those bytes in a parsed request header, but a correlation id built by any other caller can never split the response here.