UNPKG

@hasan-akbari/advanced-http-client

Version:

Advanced Angular HttpClient with cache, inflight dedup, rate limit, debounce, queueing, batching, retry/backoff, timeout, logging.

5 lines (4 loc) 396 B
import { HttpHeaders, HttpParams } from '@angular/common/http'; export declare function toHeaders(h?: Record<string, string> | HttpHeaders): HttpHeaders | undefined; export declare function toParams(p?: Record<string, any> | HttpParams): HttpParams | undefined; export declare function backoffDelay(attempt: number, base: number, type: 'linear' | 'exponential' | 'jitter', max?: number): number;