Skip to main content

request_id

Function request_id 

Source
pub async fn request_id(req: Request, next: Next) -> Response
Expand description

Mint (or honor a client-supplied) request id, stash it in extensions for handlers, and echo it on the response.