Skip to content

Class: HttpsTransport ​

The default transport, over Node's http/https. Unlike global fetch it does not inject browser sec-fetch-* headers, which the private API rejects. Sends exactly the headers it is given and decompresses gzip/deflate/br responses.

Implements ​

Constructors ​

Constructor ​

ts
new HttpsTransport(options?): HttpsTransport;

Parameters ​

ParameterType
options?HttpsTransportOptions

Returns ​

HttpsTransport

Methods ​

request() ​

ts
request(req): Promise<HttpResponse>;

Sends the request, through the proxy when one is set.

Parameters ​

ParameterType
reqHttpRequest

Returns ​

Promise<HttpResponse>

Implementation of ​

HttpTransport.request

MIT License. Not affiliated with, endorsed or sponsored by Meta or Instagram.