pub fn request_id() -> (SetRequestIdLayer<UuidRequestId>, PropagateRequestIdLayer)Expand description
Returns a tuple of layers that set and propagate an x-request-id header.
SetRequestIdLayerassigns a UUID v4 request ID on incoming requests that do not already carry one.PropagateRequestIdLayercopies the request ID to the response.