CWE API Client - v1.0.1
    Preparing search index...

    Interface RequestEvent

    Payload emitted on every HTTP request made by CweClient.

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

    Properties

    url: string

    Full URL that was requested

    method: "GET"

    HTTP method used

    startedAt: Date

    Timestamp when the request started

    finishedAt: Date

    Timestamp when the request finished (success or error)

    durationMs: number

    Total duration in milliseconds

    statusCode?: number

    HTTP status code returned by the server, if a response was received

    error?: Error

    Error thrown, if the request failed