Skip to main content

request_id

Function request_id 

Source
pub fn request_id(headers: &HeaderMap) -> HeaderValue
Expand description

The client’s x-request-id, if it sent exactly one that can be used as given, or a new one.

A value that is too long or carries anything but visible ASCII is replaced rather than trimmed: an id that has been altered no longer matches what the client logged, which is the only thing it was for.