code: function parseHost(uri) {
    const {protocol, host} = url.parse(uri);
  
    assert(protocol === 'http:' || protocol === 'https:',
      'Bad URL for location.');
  
    return `${protocol}//${host}`;
  }
docs: /*
  Helpers