UNPKG

@hubspot/api-client

Version:

NodeJS v3 [HubSpot API](https://developers.hubspot.com/docs/api/overview) SDK(Client) files

26 lines (25 loc) 854 B
/// <reference types="node" /> /// <reference types="node" /> /// <reference types="node" /> /// <reference types="node" /> /// <reference types="node" /> /// <reference types="node" /> import * as http from 'http'; import * as https from 'https'; type HeaderMap = Record<string, string>; type RequestUrl = string | URL; export interface IHttpTransportOptions { method?: string; headers?: HeaderMap; body?: unknown; agent?: http.Agent | https.Agent; } export interface IBufferedResponse { status: number; headers: HeaderMap; text(): Promise<string>; binary(): Promise<Buffer>; } export declare function sendFetchRequest(url: RequestUrl, options: IHttpTransportOptions): Promise<Response>; export declare function sendBufferedRequest(url: RequestUrl, options: IHttpTransportOptions): Promise<IBufferedResponse>; export {};