method
protocol
v2.1.0 -
Show latest stable
- Class:
ActionController::AbstractRequest
protocol()public
Return ‘https://’ if this is an SSL request and ‘http://’ otherwise.
protocol()Return ‘https://’ if this is an SSL request and ‘http://’ otherwise.