docs: function appendQuery(path, query) {
    if (query) {
      if (isObject(query)) {
        query = querystring.stringify(query);
      }
      if (isString(query)) {
        let sep = path.indexOf('?') < 0 ? '?' : '&';
        return path + sep + query;
      }
    }
    return path;
  }