UNPKG

flight-path

Version:

Express style router for Fastly Compute@Edge

26 lines (25 loc) 784 B
export default class FPResponse { private config; _headers: Headers; private _body; status: number; _cookies: Map<string, string>; private _hasEnded; constructor(config: any); send(response: BodyInit | Response): void; end(body: BodyInit): void; json(data: any): void; writeHead(statusCode: number, headers: {}): void; get headers(): { [k: string]: string; }; setHeader(key: string, value: string): void; useHeaders(headers: Headers): void; appendHeader(key: string, value: string): void; cookie(key: string, value: string, options?: {}): void; get body(): BodyInit; get hasEnded(): boolean; redirect(url: string): void; render(templateName: any, view: any): void; setDefaults(): void; }