Files
expressjs.com/_includes/api/en/3x/req-protocol.md
Hage Yaapa 454fa0faf8 i18n init
2015-02-25 23:59:46 +05:30

332 B

req.protocol

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"