Method: ActionDispatch::Http::URL#standard_port
- Defined in:
- lib/action_dispatch/http/url.rb
#standard_port ⇒ Object
Returns the standard port number for this request’s protocol.
54 55 56 57 58 59 |
# File 'lib/action_dispatch/http/url.rb', line 54 def standard_port case protocol when 'https://' then 443 else 80 end end |