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

22 lines
541 B
Plaintext

// @flow
// Generated using flowgen2
import type {CachedResponse} from './CachedResponse';
declare class MemoryCache {
getResponse(
url: string,
callback: (err: null | Error, response: null | CachedResponse) => void,
): void;
updateResponseHeaders(
url: string,
response: {[key: 'headers' | 'requestTimestamp']: any},
): void;
setResponse(url: string, response: CachedResponse): void;
invalidateResponse(
url: string,
callback: (err: ErrnoError | null) => void,
): void;
}
export default MemoryCache;