UNPKG

@derhuerst/http-basic

Version:

Very low level wrapper arround http.request/https.request

9 lines (8 loc) 453 B
import { CachedResponse } from './CachedResponse'; interface ICache { getResponse(url: string, cb: (err: Error | null, response: CachedResponse | null) => void): void; setResponse(url: string, response: CachedResponse | null): void; updateResponseHeaders?: (url: string, response: Pick<CachedResponse, 'headers' | 'requestTimestamp'>) => void; invalidateResponse(url: string, cb: (err: Error | null) => void): void; } export { ICache };