Skip to main content

inject

Function inject 

Source
pub fn inject(cx: &Context, headers: &mut HeaderMap)
Expand description

Writes the Request Context fields from cx into headers, replacing any existing Request Context headers.

Only call this for requests to other Encore services in the same application; calling it on external requests would leak Request Context data to third parties.