src/index.js
function do_create_req(config, routes) {
	routes = routes || {};

	var version = routes.version || {};
	if(version && (typeof version === 'object')) {
	} else {
		version = {'self':routes.version || config.pkg.version};
	}
	
	if(!version.api) {
		version.api = api_config.pkg.version;
	}
	
	routes.version = version;

	var router = new RequestRouter(routes);
	var req_counter = 0;

	/* Inner Request handler */
	function do_req(req, res) {
		req_counter += 1;
		return router.resolve( req, res );
	} // do_req

	return do_req;
}
function do_create_req(config, routes) {
	routes = routes || {};

	var version = routes.version || {};
	if(version && (typeof version === 'object')) {
	} else {
		version = {'self':routes.version || config.pkg.version};
	}
	
	if(!version.api) {
		version.api = api_config.pkg.version;
	}
	
	routes.version = version;

	var router = new RequestRouter(routes);
	var req_counter = 0;

	/* Inner Request handler */
	function do_req(req, res) {
		req_counter += 1;
		return router.resolve( req, res );
	} // do_req

	return do_req;
}
Builder for generic HTTP Request Handler