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

7 lines
378 B
TypeScript
Raw Normal View History

2021-12-04 19:00:33 +00:00
import Response = require('http-response-object');
import { Headers } from './Headers';
import { CachedResponse } from './CachedResponse';
export declare function isMatch(requestHeaders: Headers, cachedResponse: CachedResponse): boolean;
export declare function isExpired(cachedResponse: CachedResponse): boolean;
export declare function canCache<T>(res: Response<T>): boolean;