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

14 lines
377 B
Plaintext

section
h3(id='req.protocol') req.protocol
p.
Return the protocol string "http" or "https"
when requested with TLS. When the "trust proxy"
setting is enabled the "X-Forwarded-Proto" header
field will be trusted. If you're running behind
a reverse proxy that supplies https for you this
may be enabled.
+js.
req.protocol
// => "http"