Musique/node_modules/@derhuerst/http-basic/lib/cache-utils.d.ts
2021-12-04 20:00:33 +01:00

6 lines
378 B
TypeScript

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;