Beignet API reference
    Preparing search index...

    Type Alias RequestContextArgs<Ports>

    Arguments passed to the context.request factory after a route is matched.

    type RequestContextArgs<Ports extends AnyPorts = AnyPorts> = {
        contract?: HttpContractConfig;
        ports: Ports;
        req: HttpRequestLike;
        requestId: string;
        trace: TraceContext;
    }

    Type Parameters

    Index

    Matched contract, when the request resolved to a registered route.

    ports: Ports

    Final app ports, including ports contributed by providers.

    Framework-neutral request.

    requestId: string

    Request correlation ID resolved by the server from the configured request ID header, or generated when the request did not send one.

    W3C trace context resolved by the server from the incoming traceparent header, or generated when the request did not send one. Spread this into the context (...trace) to correlate downstream activity.