method
protocol
v3.2.13 -
Show latest stable
- Class:
ActionDispatch::Http::URL
protocol()public
Returns ‘https://’ if this is an SSL request and ‘http://’ otherwise.
protocol()Returns ‘https://’ if this is an SSL request and ‘http://’ otherwise.