UNPKG

scraperapi-sdk

Version:
9 lines (8 loc) 382 B
/// <reference types="node" /> import { IncomingHttpHeaders, OutgoingHttpHeaders } from 'http'; import APIOptions from '../model/APIOptions'; export default function fetch(apiPath: string, apiOptions: APIOptions, method: 'GET' | 'POST' | 'PUT', headers?: OutgoingHttpHeaders, body?: string): Promise<{ body: string; headers: IncomingHttpHeaders; statusCode: number; }>;