code: function () {
  
              var res = arguments[0];
  
              userOptions.emit('response', req, res);
  
              if (callback && userOptions.resCallback) callback.apply(this, arguments);
  
              res.on('end', function() {
                  userOptions.emit('afterResponse', req, res);
              });
  
          }
docs: Create the callback function for response