Interface RecordedRequest

Source
Expand description

A recorded request with the rule that matched and when it happened.

interface RecordedRequest {
    request: MockRequest;
    rule: string | undefined;
    timestamp: number;
}

Properties§

§readonly request: MockRequest

The normalised request that was received.

§readonly rule: string | undefined

Description of the rule that matched, or undefined if the fallback was used.

§readonly timestamp: number

When the request was recorded (Date.now() value).