title: NodeJS HTTPS.get how to know the download is finished?
body: <p>I have got the following problem: I am downloading a file, and i want to do something as soon as it finishes. I actually want to require a .js file as soon as i got it downloaded</p>
  
  <pre><code>            var request = https.get('https://mypage/en.js').on('response', function (response) {
              response.on('data', function (chunk) {
                  var info = (chunk);
                  descriptionFile.write(info);
              });
              response.on('end', function(){ //do some stuff here
  
  
                  response.end(); //doesnt work..
              })
          });
  
      require('./descriptionEN.js')
  </code></pre>
  
  <p>There seems to be no res.end().. How can i do this otherwise? How do i know my download is finished?</p>
  
  <p>Thank you!</p>