lib/server/server.js
function(isGlobal, server, err, msg, session, resp, opts, cb) {
  if(isGlobal) {
    cb(err, resp, opts);
    // after filter should not interfere response
    afterFilter(isGlobal, server, err, msg, session, resp, opts, cb);
  } else {
    afterFilter(isGlobal, server, err, msg, session, resp, opts, cb);
  }
}
function(isGlobal, server, err, msg, session, resp, opts, cb) {
  if(isGlobal) {
    cb(err, resp, opts);
    // after filter should not interfere response
    afterFilter(isGlobal, server, err, msg, session, resp, opts, cb);
  } else {
    afterFilter(isGlobal, server, err, msg, session, resp, opts, cb);
  }
}
function ( isGlobal , server , err , msg , session , resp , opts , cb ) { if ( isGlobal ) { cb ( err , resp , opts ) ; // after filter should not interfere response afterFilter ( isGlobal , server , err , msg , session , resp , opts , cb ) ; } else { afterFilter ( isGlobal , server , err , msg , session , resp , opts , cb ) ; } }
Send response to client and fire after filter chain if any.
Send response to client and fire after filter chain if any .