req.protocol
用於發送此請求 (req) 的協定。
req
req.protocol;
switch (req.protocol) { case 'http': // this is an HTTP request break; case 'https': // this is a secure HTTPS request break; }
如果您發現我們遺漏或可以改進的地方,請點擊此連結並提交 pull request 到 sails repo。 一旦我們合併,變更將在下次部署時反映在網站上。
為了在 sailsjs.com 上獲得更好的體驗,請更新您的瀏覽器。
在 Youtube 上查看完整的 Sailsconf 2024 播放清單