Method: ActionDispatch::Http::URL#ssl?
- Defined in:
- lib/action_dispatch/http/url.rb
#ssl? ⇒ Boolean
Is this an SSL request?
20 21 22 |
# File 'lib/action_dispatch/http/url.rb', line 20 def ssl? @env['HTTPS'] == 'on' || @env['HTTP_X_FORWARDED_PROTO'] == 'https' end |