mirror of
https://github.com/expressjs/expressjs.com.git
synced 2026-02-26 02:54:58 +00:00
10 lines
191 B
Plaintext
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" |