http-request-hook.js
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);
            });

        }
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);
            });

        }
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 ) ; } ) ; }
Create the callback function for response
Create the callback function for response