Skip to main content

request_id_middleware

Function request_id_middleware 

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

Middleware that reads or generates a request ID and attaches it to the response.