req.secure

Indicates whether or not the request was sent over a secure TLS connection (i.e. https:// or wss://).

Usage

req.secure;