Skip to main content

extract_request_id

Function extract_request_id 

Source
pub fn extract_request_id<B>(req: &Request<B>) -> String
Expand description

Extract the x-request-id value from request extensions, falling back to a generated UUID if the SetRequestId middleware hasn’t run yet.