UNPKG

flagpole

Version:

Simple and fast DOM integration, headless or headful browser, and REST API testing framework.

20 lines (19 loc) 752 B
/// <reference types="node" /> import { Cookie } from 'tough-cookie'; import { IncomingMessage } from 'http'; import * as puppeteer from "puppeteer-core"; export declare class HttpResponse { body: string; statusCode: number; statusMessage: string; headers: { [key: string]: string; }; cookies: Cookie[]; private constructor(); static createEmpty(): HttpResponse; static fromRequest(response: IncomingMessage, body: string, cookies: Cookie[]): HttpResponse; static fromPuppeteer(response: puppeteer.Response, body: string, cookies: Cookie[]): HttpResponse; static fromProbeImage(response: any, cookies: Cookie[]): HttpResponse; static fromLocalFile(relativePath: string): Promise<HttpResponse>; }