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

Scans URLs to determine if they are up or down.

Kind: global function
Returns: Array - An array of objects of the form {url: url, status: true|false}
Since: 3.0.0

Param Type Default Description
urls Array An array of urls like https://mysite.lndo.site 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.

Example

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