In express.js, I would like to provide an additional attribute on the request object for each of my URI listeners. This would provide the protocol, hostname, and port number
You can use a middleware. Add this to your app.configure block:
app.configure
app.use(function (req, res, next) { req.root = 'WHAT YOU WANT'; next(); });
Every request will go tough this function, and afterwards go to the right url-block thanks to next().
next()