@hubspot/api-client
Version:
NodeJS v3 [HubSpot API](https://developers.hubspot.com/docs/api/overview) SDK(Client) files
27 lines (26 loc) • 788 B
TypeScript
/// <reference types="node" />
import IConfiguration from '../../configuration/IConfiguration';
import { IHttpOptions } from './IHttpOptions';
export interface IHeaders {
[]: string;
}
export declare class Request {
protected opts: IHttpOptions;
protected config: IConfiguration;
protected baseUrl: string;
protected url: URL;
protected method: string;
protected headers: IHeaders;
protected body?: any;
constructor(config?: IConfiguration, opts?: IHttpOptions);
getSendData(): {
method: string;
headers: IHeaders;
};
getUrl(): URL;
protected applyAuth(): void;
protected initHeaders(): void;
protected getDefaultHeaders(): IHeaders;
protected generateUrl(): URL;
protected setBody(): void;
}