UNPKG

fingerprint-me-not

Version:

A powerful Node.js HTTP client with advanced TLS fingerprinting capabilities

30 lines 865 B
/// <reference types="node" resolution-mode="require"/> /// <reference types="node" resolution-mode="require"/> import { CookieJar } from 'tough-cookie'; export declare class Response { url: string; ok: boolean; status: number; reason: string | undefined; raiseForStatus: () => void; headers: Record<string, string>; cookies: CookieJar; content: Buffer; text: string; json: any; isBinary: boolean; constructor(response: any, cookies: CookieJar); /** * Get the response content as a Buffer (recommended for binary data) */ getBuffer(): Buffer; /** * Get the response content as text (only recommended for text content) */ getText(): string; /** * Check if the response contains binary content */ isBinaryContent(): boolean; } //# sourceMappingURL=response.d.ts.map