standard_port()
Returns the standard port number for this request’s protocol.
# File actionpack/lib/action_dispatch/http/url.rb, line 217 def standard_port case protocol when 'https://' then 443 else 80 end end