UNPKG

flight-path

Version:

Express style router for Fastly Compute@Edge

27 lines (26 loc) 578 B
/// <reference types="js-compute" /> export declare class Fetcher { private sources; constructor(sources: FetchSourceMap); fetch(): Promise<FetchResultMap>; private getSourceData; } declare type FetchSourceMap = { [key: string]: FetchSource; }; declare type FetchResultMap = { [key: string]: FetchResult; }; declare type FetchResult = { source: FetchSource; data: string; }; declare type FetchSource = { url: string; backend: string; method?: string; body?: string; headers?: Headers; cache?: CacheOverride; }; export {};