@push.rocks/webrequest
Version:
Modern, fetch-compatible web request library with intelligent HTTP caching, retry strategies, and fault tolerance.
15 lines (14 loc) • 371 B
TypeScript
/**
* Timeout handling utilities
*/
/**
* Create an AbortController with timeout
*/
export declare function createTimeoutController(timeoutMs: number): {
controller: AbortController;
cleanup: () => void;
};
/**
* Execute a fetch with timeout
*/
export declare function fetchWithTimeout(url: string, init: RequestInit, timeoutMs: number): Promise<Response>;