renovate
Version:
Automated dependency updates. Flexible so you don't need to be.
7 lines (6 loc) • 375 B
TypeScript
import type { GotOptions, HttpResponse } from '../types';
export interface HttpCacheProvider {
setCacheHeaders<T extends Pick<GotOptions, 'headers'>>(url: string, opts: T): Promise<void>;
bypassServer<T>(url: string, ignoreSoftTtl?: boolean): Promise<HttpResponse<T> | null>;
wrapServerResponse<T>(url: string, resp: HttpResponse<T>): Promise<HttpResponse<T>>;
}