docs: function assembleUrl (parts, insertPort = false) {
    let result;
    if (insertPort) {
      result = `${parts.protocol}://${parts.host}:${parts.port}`;
    } else {
      result = `${parts.protocol}://${parts.host}`;
    }
  
    if (parts.path) {
      result = `${result}/${parts.path}`;
    }
    return result;
  }