title: Can we use onDownloadProgress from axios for loading API?
body: <p>I need to create a progress bar for loading API in a react project using axios, and I discovered the "onDownloadProgress" function for this. But I don't know if we can use it for get informations like loading percentage for exemple or if it only for files download?</p>
  
  <p>So I don't sure if we can get informations about API loading with this function? </p>
  
  <p>I tryed to implement this function in my code : </p>
  
  <pre><code>componentWillMount() {
    axios.get('https://guillaumeduclos.fr/jd-portfolio/wp-json/wp/v2/posts')
    .then(response =&gt; {
      axios.onDownloadProgress = (progressEvent) =&gt; {
        let percentCompleted = Math.round( (progressEvent.loaded * 100) / progressEvent.total );
        console.log(percentCompleted);
      }
      this.setState({
        datas: response.data[0].acf.project_illustration.url,
        loading: false
      });
    })
    .catch(error =&gt; {
      if(error.response) {
        console.log(error.responderEnd);
      }
    });
  </code></pre>
  
  <p>}</p>
  
  <p>The console.log() is not display. Thank you for your help.</p>