mirror of
https://github.com/xuxiaobo-bobo/boda_jsEnv.git
synced 2025-04-22 18:26:01 +08:00
19 lines
467 B
Plaintext
19 lines
467 B
Plaintext
// @flow
|
|
// Generated using flowgen2
|
|
|
|
const Response = require('http-response-object');
|
|
import type {Headers} from './Headers';
|
|
import type {CachedResponse} from './CachedResponse';
|
|
|
|
declare function isMatch(
|
|
requestHeaders: Headers,
|
|
cachedResponse: CachedResponse,
|
|
): boolean;
|
|
export {isMatch};
|
|
|
|
declare function isExpired(cachedResponse: CachedResponse): boolean;
|
|
export {isExpired};
|
|
|
|
declare function canCache<T>(res: Response<T>): boolean;
|
|
export {canCache};
|