req.subdomains

An array of all the subdomains in this request's URL.

Usage

req.subdomains;

Example

If the requested URL was "https://ww3.staging.ibm.com":

req.subdomains;
// -> ['ww3', 'staging']