title: Cannot redirect when doing post request
body: <p>I am using request module for doing post request. After the post request, I wish to redirect user. But it seems to me that i am unable to do redirect here.</p>
  
  <pre><code>function callApi(req, res) {
      request(options, function(err, response, body){
          res.redirect('/'); //cannot read property redirect of undefined, can't set headers after they are sent
      });
  }
  
  function callApi(req, res) {
      request(options, function(err, response, body){
          req.res.redirect('/'); // can't set headers after they are sent
      });
  }
  </code></pre>