UNPKG

sails

Version:

API-driven framework for building realtime apps, using MVC conventions (based on Express and Socket.io)

28 lines (19 loc) 373 B
# `req.protocol` The protocol used to send this request (`req`). ### Usage ```usage req.protocol; ``` ### Example ```js switch (req.protocol) { case 'http': // this is an HTTP request break; case 'https': // this is a secure HTTPS request break; } ``` <docmeta name="displayName" value="req.protocol"> <docmeta name="pageType" value="property">