UNPKG

flight-path

Version:

Express style router for Fastly Compute@Edge

27 lines (26 loc) 631 B
/// <reference types="js-compute" /> export default class FPRequest { private config; private event; readonly clientInfo: {}; private _headers; readonly method: string; url: URL; params: { [key: string]: string; }; query: { [key: string]: string; }; private _cookies; cookies: any; constructor(config: any, event: FetchEvent); private reSerializeCookies; get headers(): { [k: string]: string; }; setHeader(key: string, value: string): void; json(): Promise<any>; text(): Promise<string>; arrayBuffer(): Promise<ArrayBuffer>; }