Packagist API Client - v1.0.0
    Preparing search index...

    Interface RequestEvent

    interface RequestEvent {
        url: string;
        method: "GET" | "POST" | "PUT";
        startedAt: Date;
        finishedAt: Date;
        durationMs: number;
        statusCode?: number;
        error?: Error;
    }
    Index

    Properties

    url: string

    Full URL requested, including query string.

    method: "GET" | "POST" | "PUT"

    HTTP method used for the request.

    startedAt: Date

    Timestamp captured immediately before fetch runs.

    finishedAt: Date

    Timestamp captured after success or failure.

    durationMs: number

    Request duration in milliseconds.

    statusCode?: number

    HTTP status code, if Packagist returned a response.

    error?: Error

    Error thrown by fetch or by Packagist non-2xx handling.