nestjs-axios-retry
Version:
A NestJS module that provides Axios with configurable retry functionality, leveraging axios-retry for enhanced HTTP request resilience.
11 lines (10 loc) • 378 B
TypeScript
import { HttpService } from '@nestjs/axios';
export declare class AppService {
private httpService;
constructor(httpService: HttpService);
fetchData(): Promise<any>;
fetchDataWithCustomRetry(): Promise<any>;
fetchDataWithExponentialBackoff(): Promise<any>;
fetchDataWithRetryCondition(): Promise<any>;
fetchDataWithOnRetryCallback(): Promise<any>;
}