req.protocolUsageExamplereq.protocolThe protocol used to send this request (req). Usagereq.protocol; Exampleswitch (req.protocol) { case 'http': // this is an HTTP request break; case 'https': // this is a secure HTTPS request break;}