H
H
Humin902016-08-09 13:16:37
Node.js
Humin90, 2016-08-09 13:16:37

How to clear memory in the request module after getting content from a resource?

The situation is as follows:
There are several requests to the site, how, after the request, to delete all the data from the memory left by the request?
Does it have any method?
The garbage collector runs once per minute.
After each request, I would not want to run it ..

request({
  url: 'http://site.com'
},

function( err, response, body ) {
  if( !err && response.statusCode == 200 ) {
    // Манипуляция с полученными данными
    // Удаление данных, которые оставил модуль request
  }
  else {
    
  }
});

Answer the question

In order to leave comments, you need to log in

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question