Files
expressjs.com/en/api/req-host.jade
TJ Holowaychuk 9e957d4e2c Initial commit
2012-07-31 20:33:12 -07:00

10 lines
191 B
Plaintext

section
h3(id='req.host') req.host
p.
Returns the hostname from the "Host" header field (void of portno).
+js.
// Host: "example.com:3000"
req.host
// => "example.com"