pub async fn request_id_middleware(
request: Request<Body>,
next: Next,
) -> ResponseExpand description
Request ID middleware.
If the request already has an X-Request-Id header, it is preserved.
Otherwise, a new UUID v4 is generated and added to both the request
extension and the response headers.