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