Back to Expressjs

Req Secure

_includes/api/en/5x/req-secure.md

latest216 B
Original Source
<h3 id='req.secure'>req.secure</h3>

A Boolean property that is true if a TLS connection is established. Equivalent to the following:

<!-- eslint-disable no-unused-expressions -->
js
req.protocol === 'https'