[Node.js] Getting Host Name in Express.js

Tadashi Shigeoka ·  Mon, December 16, 2013

I’ll introduce how to get the host name in Express.js (Node.js).

Express.js

request.headers.host

You can check the host name from the HTTP request headers.

request.headers.host

This is not specifically limited to Express.js.

That’s all from the Gemba.

Reference Information