access to HTTP server object in node.js express

Viewed 19442

I am inside a middleware (function(req, res, next) {...}).

Is there a way to access the HTTP server object from the req?

UPDATE

Let me be more specific. I am trying to find out a port that the server listens on, or unix socket path, if it's listening on that.

4 Answers
Related