code: function main (url, configs, responseType = 'json') {
    let retryOptions = {
      retries: configs.retries
    }
  
    let fetchOptions = {
      headers,
      timeout: configs.timeout,
      agent: proxy(configs.proxy)
    }
  
    return pRetry(function () {
      return fetch(url, fetchOptions).then(response => {
        return responseType === 'json' ? response.json() : response.text()
      })
    }, retryOptions)
  }
docs: /* eslint-enable max-len