Interface FetchRequestInfo

When a request has been made, information about the request is gathered for logging.

interface FetchRequestInfo {
    init: RequestInit;
    input: URL | RequestInfo;
    maxRetries: number;
    requestId: string;
    requestOptions: {
        readErrorBody: ErrorBodyType;
        serviceId: null | string;
    };
    timestamp: number;
}

Properties

init: RequestInit

The init parameter passed to request.

input: URL | RequestInfo

The input parameter passed to request.

maxRetries: number

The maximum number of retries.

requestId: string

The identifier for the request. The request id for the requesting event will match its corresponding requestComplete event.

requestOptions: {
    readErrorBody: ErrorBodyType;
    serviceId: null | string;
}

Options the request is using.

Type declaration

  • ReadonlyreadErrorBody: ErrorBodyType

    Determines how error responses are read and reported.

  • ReadonlyserviceId: null | string

    The resolved service id.

timestamp: number

The timestamp the request was originally requested.