flagpole
Version:
Simple and fast DOM integration, headless or headful browser, and REST API testing framework.
26 lines (25 loc) • 834 B
TypeScript
import { ProtoResponse } from "./response";
import { iResponse, iValue } from "./interfaces";
import { HttpResponse } from "./httpresponse";
import { ValuePromise } from "./value-promise";
import { ScenarioType } from "./scenario-types";
export interface ImageProperties {
width: number;
height: number;
type: string;
mime: string;
length: number;
url: string;
}
export declare class ImageResponse extends ProtoResponse implements iResponse {
protected imageProperties: ImageProperties;
get length(): iValue;
get url(): iValue;
get path(): iValue;
get responseType(): ScenarioType;
get responseTypeName(): string;
init(httpResponse: HttpResponse): void;
eval(): Promise<any>;
find(propertyName: string): ValuePromise;
findAll(propertyName: string): Promise<iValue[]>;
}