Musique/node_modules/@derhuerst/http-basic/lib/ICache.d.ts

9 lines
453 B
TypeScript
Raw Permalink Normal View History

2021-12-04 19:00:33 +00:00
import { CachedResponse } from './CachedResponse';
interface ICache {
getResponse(url: string, cb: (err: Error | null, response: CachedResponse | null) => void): void;
setResponse(url: string, response: CachedResponse | null): void;
updateResponseHeaders?: (url: string, response: Pick<CachedResponse, 'headers' | 'requestTimestamp'>) => void;
invalidateResponse(url: string, cb: (err: Error | null) => void): void;
}
export { ICache };