Skip to main content

request_id_layer

Function request_id_layer 

Source
pub fn request_id_layer() -> RequestIdLayer
Expand description

Creates the legacy response-only request-id layer.

This helper mirrors any inbound x-request-id to the response or generates a nidus-<timestamp> value when absent. It does not validate IDs or insert RequestContext. Use validated_request_id_layer for production UUID v4 request IDs and request context population.