lib/commandCenter/httpBatchHandler.js
function parseSinglepart(req, cb) {
	// single part

	req.setEncoding('utf8');

	var cmdData = '';

	req.on('data', function (chunk) {
		cmdData += chunk;
	});

	req.on('end', function () {
		logger.verbose('Finished reading', req.method, 'request.');

		cb(null, cmdData, null);
	});
}
function parseSinglepart(req, cb) {
	// single part

	req.setEncoding('utf8');

	var cmdData = '';

	req.on('data', function (chunk) {
		cmdData += chunk;
	});

	req.on('end', function () {
		logger.verbose('Finished reading', req.method, 'request.');

		cb(null, cmdData, null);
	});
}
function parseSinglepart ( req , cb ) { // single part req . setEncoding ( 'utf8' ) ; var cmdData = '' ; req . on ( 'data' , function ( chunk ) { cmdData += chunk ; } ) ; req . on ( 'end' , function ( ) { logger . verbose ( 'Finished reading' , req . method , 'request.' ) ; cb ( null , cmdData , null ) ; } ) ; }
Streams and parses a singlepart request

@param {Object}   req       The HTTP request.
@param {Function} cb        Callback on completion.
Streams and parses a singlepart request