instance method
standard_port
Ruby on Rails 3.2.22.5
Since v3.0.20Signature
standard_port()
Returns the standard \port number for this request’s protocol.
Source
# File actionpack/lib/action_dispatch/http/url.rb, line 127
def standard_port
case protocol
when 'https://' then 443
else 80
end
end
Defined in actionpack/lib/action_dispatch/http/url.rb line 127
· View on GitHub
· Improve this page
· Find usages on GitHub
Defined in ActionDispatch::Http::URL