lando.scanUrls(urls, [opts]) ⇒ Array

Scans URLs to determine if they are up or down.

Since: 3.0.0

Param Type Default Description
urls Array An array of urls like or https://localhost:34223
[opts] Object Options to configure the scan.
[opts.max] Integer 7 The amount of times to retry accessing each URL.
[opts.waitCode] Array [400, 502, 404] The HTTP codes to prompt a retry.

Returns: Array - An array of objects of the form {url: url, status: true|false}

// Scan URLs and print results
return lando.utils.scanUrls(['http://localhost', 'https://localhost'])
.then(function(results) {

results matching ""

    No results matching ""