plugins/setContext.js
function processRequest(options, req, res, next) {
  debug('processing HTTP request');

  var seneca = req.seneca;

  options.createContext(req, res, createDefaultContext(options, req), function (error, context) {
    if (error) {
      next(error);
    } else {
      setContext(seneca, context);
      next();
    }
  });
}
function processRequest(options, req, res, next) {
  debug('processing HTTP request');

  var seneca = req.seneca;

  options.createContext(req, res, createDefaultContext(options, req), function (error, context) {
    if (error) {
      next(error);
    } else {
      setContext(seneca, context);
      next();
    }
  });
}
function processRequest ( options , req , res , next ) { debug ( 'processing HTTP request' ) ; var seneca = req . seneca ; options . createContext ( req , res , createDefaultContext ( options , req ) , function ( error , context ) { if ( error ) { next ( error ) ; } else { setContext ( seneca , context ) ; next ( ) ; } } ) ; }
Derives a context from an HTTP request and
ensures that it is available to all seneca actions in this transaction.
Derives a context from an HTTP request and ensures that it is available to all seneca actions in this transaction .