connect-busboy = function (options) { options = options || {}; return function(req, res, next) { if (req.busboy || req.method === 'GET' || req.method === 'HEAD' || !hasBody(req) || !RE_MIME.test(mime(req))) return next(); var cfg = {}; for (var prop in options) cfg[prop] = options[prop]; cfg.headers = req.headers; req.busboy = new Busboy(cfg); if (options.immediate) { process.nextTick(function() { req.pipe(req.busboy); }); } next(); }; }
n/a