Keyboard shortcuts

Press or to navigate between chapters

Press S or / to search in the book

Press ? to show this help

Press Esc to hide this help

Function: http()

http(method, url, opts?): Promise<HttpResponse>

Performs the request off-thread and resolves with the response; await it. await Promise.all([http(...), http(...)]) fires several requests concurrently.

Parameters

method

string

url

string

opts?

HttpOptions

Returns

Promise<HttpResponse>