UNPKG

@loopback/docs

Version:

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

36 lines (23 loc) 886 B
--- 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 <b>Signature:</b> ```typescript export declare function httpGetAsync(urlString: string, agent?: http.Agent): Promise<IncomingMessage>; ``` ## Parameters | Parameter | Type | Description | | --- | --- | --- | | urlString | string | | | agent | http.Agent | | <b>Returns:</b> Promise&lt;IncomingMessage&gt;