Swap-Aggregator-Subgraph/node_modules/http-basic/lib/cache-control-utils.js.flow
Richa-iitr d211083153 Revert "Revert "added handler""
This reverts commit c36ee8c5ca.
2022-07-03 07:30:05 +05:30

17 lines
415 B
Plaintext

// @flow
// Generated using flowgen2
import type {CachedResponse} from './CachedResponse';
const Response = require('http-response-object');
type Policy = {maxage: number | null};
export type {Policy};
declare function isCacheable<T>(res: Response<T> | CachedResponse): boolean;
export {isCacheable};
declare function cachePolicy<T>(
res: Response<T> | CachedResponse,
): Policy | null;
export {cachePolicy};