@typed/http
Version:
HTTP requests for node and browsers
13 lines • 558 B
TypeScript
import { Timer } from '@typed/timer';
import { HttpEnv, HttpMethod, HttpOptions } from './types';
export declare type WithHttpManagementOptions = {
readonly timer: Timer;
readonly expiration?: number;
readonly methodsToCache?: HttpMethod[];
readonly getCacheKey?: (url: string, options: HttpOptions) => string;
};
export declare const withHttpManagement: {
(options: WithHttpManagementOptions, env: HttpEnv): HttpEnv;
(options: WithHttpManagementOptions): (env: HttpEnv) => HttpEnv;
};
//# sourceMappingURL=withHttpManagement.d.ts.map