taxum
    Preparing search index...

    Function propagateRequestIdLayer

    • A layer that propagates a request ID header from the incoming request to the outgoing response.

      The purpose of this layer is to ensure consistency of the request ID header across the request-response cycle. If the response does not already include the request ID header, it will include the one from the incoming request. Additionally, the request ID is stored in the response extensions for further processing.

      If not set, the header name defaults to X-Request-ID.

      Parameters

      • OptionalheaderNameOpt: string

      Returns Layer