@rr0/cms
Version:
RR0 Content Management System (CMS)
22 lines (21 loc) • 641 B
TypeScript
import { HttpFetcher, HttpSourceError } from "./HttpSource.js";
import { FetchHttpFetcher } from "./FetchHttpFetcher.js";
export interface ArchiveSnapshot {
available: boolean;
url: string;
/**
* "YYYYMMDDMMHHSS"
*/
timestamp: string;
status: number;
}
export interface ArchiveHttpFetcherResponse {
archived_snapshots: {
[name: string]: ArchiveSnapshot;
};
}
export declare class ArchiveHttpFetcher implements HttpFetcher {
protected fetcher: FetchHttpFetcher;
constructor();
fetch<T>(url: URL, init?: RequestInit, resOut?: Partial<Response>, error?: HttpSourceError): Promise<T>;
}