@loopback/docs
Version:
Documentation files rendered at [https://loopback.io](https://loopback.io)
79 lines (40 loc) • 1.17 kB
Markdown
---
lang: en
title: 'API docs: testlab.httpsgetasync'
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.httpsgetasync.html
---
<!-- Do not edit this file. It is automatically generated by API Documenter. -->
[Home](./index.md) > [@loopback/testlab](./testlab.md) > [httpsGetAsync](./testlab.httpsgetasync.md)
## httpsGetAsync() function
Async wrapper for making HTTPS GET requests
**Signature:**
```typescript
export declare function httpsGetAsync(urlString: string, agent?: https.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">
https.Agent
</td><td markdown="1">
_(Optional)_
</td></tr>
</tbody></table>
**Returns:**
Promise<IncomingMessage>