UNPKG

@loopback/docs

Version:

Documentation files rendered at [https://loopback.io](https://loopback.io)

79 lines (40 loc) 1.16 kB
--- lang: en title: 'API docs: testlab.httpgetasync' keywords: LoopBack 4.0, LoopBack 4, Node.js, TypeScript, OpenAPI sidebar: lb4_sidebar editurl: https://github.com/loopbackio/loopback-next/tree/master/packages/testlab permalink: /doc/en/lb4/apidocs.testlab.httpgetasync.html --- <!-- Do not edit this file. It is automatically generated by API Documenter. --> [Home](./index.md) &gt; [@loopback/testlab](./testlab.md) &gt; [httpGetAsync](./testlab.httpgetasync.md) ## httpGetAsync() function Async wrapper for making HTTP GET requests **Signature:** ```typescript export declare function httpGetAsync(urlString: string, agent?: http.Agent): Promise<IncomingMessage>; ``` ## Parameters <table><thead><tr><th> Parameter </th><th> Type </th><th> Description </th></tr></thead> <tbody><tr><td markdown="1"> urlString </td><td markdown="1"> string </td><td markdown="1"> </td></tr> <tr><td markdown="1"> agent </td><td markdown="1"> http.Agent </td><td markdown="1"> _(Optional)_ </td></tr> </tbody></table> **Returns:** Promise&lt;IncomingMessage&gt;