Interface XHR

interface XHR {
    abort(reason?: string): void;
    fetch<TResponse, TBody>(
        path: string,
        options?: XHRFetchOptions<TBody>,
    ): Promise<Error | TResponse>;
    getPathRequest(path: string): undefined | PathRequestConfig;
    reset(): void;
}

Methods

  • Parameters

    • Optionalreason: string

    Returns void