Page Contents
Home > @loopback/testlab > httpGetAsync
httpGetAsync() function
Async wrapper for making HTTP GET requests
Signature:
export declare function httpGetAsync(urlString: string, agent?: http.Agent): Promise<IncomingMessage>;
Parameters
Parameter | Type | Description |
---|---|---|
urlString | string | |
agent | http.Agent | (Optional) |
Returns:
Promise<IncomingMessage>