import { HttpError } from '../utils/HttpErrors'; import { CookieOptions, Cookies } from './Cookies'; import { Headers } from './Headers'; export interface WebResponse { readonly headers: Headers; readonly error: Error | HttpError | any; verbose: boolean; status: number; type: string; length: number; lastModified: Date; etag: string; readonly cookies: Cookies; body: any; vary(field: string): void; attachment(filename: string): void; redirect(url: string): void; is(...type: Array): string | false | null; cookie(name: string, value: any, options?: CookieOptions): void; clearCookie(name: string, options?: CookieOptions): void; get(name: string): string | undefined; getHeader(name: string): string | undefined; set(name: string, value: number | string | string[]): void; setHeader(name: string, value: number | string | string[]): void; append(name: string, value: number | string): void; has(name: string): boolean; remove(name: string): void; }