Documentation
    Preparing search index...

    Interface IFetchEvent

    Event of one completed fetch, passed to IConnection.logger.

    status and respond_at are null when no response arrived, and completed_at is set after response processing or transport failure. Binary success streams are handed to the caller without reading their bytes, so this timestamp does not measure the duration of their consumption. input is the value the caller passed and output is the response data, the error body for a failed status, or undefined when the request threw. These values retain their original references. Errors before transport, such as encoding or URL construction failures, do not create a logged event.

    contracts/common.md#principled-implementation The event records the route, the request input, the observed status and output, and the three instants of the exchange, which is what a logger or a benchmark needs to compute latency and to group by endpoint.

    contracts/common.md#clear-and-simple-design A flat record; the two nullable members mark the states with no response.

    contracts/common.md#prohibited-implementation-shortcuts Every value is measured by the pipeline; none is defaulted to a plausible value.

    contracts/common.md#meaningful-documentation The comment states the states with no response and what input and output hold.

    interface IFetchEvent {
        completed_at: Date;
        input: any;
        output: any;
        path: string;
        respond_at: Date | null;
        route: IFetchRoute<"HEAD" | "GET" | "POST" | "PUT" | "PATCH" | "DELETE">;
        started_at: Date;
        status: number | null;
    }
    Index
    completed_at: Date

    End of response processing, before the logger is awaited.

    input: any

    Original request value; no defensive copy is made.

    output: any

    Decoded payload or transferred binary stream, absent on processing error.

    path: string

    Route path normalized to one leading slash.

    respond_at: Date | null

    Response arrival, before response body processing; null without a response.

    route: IFetchRoute<"HEAD" | "GET" | "POST" | "PUT" | "PATCH" | "DELETE">

    Metadata used to execute the request.

    started_at: Date

    Start of the transport operation, after request preparation.

    status: number | null

    Received HTTP status, or null when transport produced no response.