method
protocol
v2.3.8 -
Show latest stable
- Class:
ActionController::Request
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.