index.js
function responseHandler (res, next) {
  return function (err, message) {
    if (err || !message) {
      next(err);
    } else {
      res.send(message);
    }
  }
}
function responseHandler (res, next) {
  return function (err, message) {
    if (err || !message) {
      next(err);
    } else {
      res.send(message);
    }
  }
}
function responseHandler ( res , next ) { return function ( err , message ) { if ( err || ! message ) { next ( err ) ; } else { res . send ( message ) ; } } }
Returns a response handler using `res` and `next` from Express.

@param {Object} res
@param {Function} next
@return {Function}
@api private
Returns a response handler using res and next from Express .