Skip to content

Interface: HttpTransport ​

The HTTP seam. Everything that talks to the network goes through this port so the request and response layers can be tested without touching the network.

Methods ​

request() ​

ts
request(req): Promise<HttpResponse>;

Sends one request and resolves with the response, whatever its status.

Parameters ​

ParameterType
reqHttpRequest

Returns ​

Promise<HttpResponse>

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