module ActionDispatch::Http::URL
def standard_port
req = ActionDispatch::Request.new 'HTTP_HOST' => 'example.com:8080'
Returns the standard \port number for this request's protocol.
def standard_port if "https://" == protocol 443 else 80 end end
def standard_port if "https://" == protocol 443 else 80 end end