instance method
standard_port?
Ruby on Rails 6.1.7.10
Since v3.0.20Signature
standard_port?()
Returns whether this request is using the standard port
req = ActionDispatch::Request.new 'HTTP_HOST' => 'example.com:80' req.standard_port? # => true req = ActionDispatch::Request.new 'HTTP_HOST' => 'example.com:8080' req.standard_port? # => false
Source
# File actionpack/lib/action_dispatch/http/url.rb, line 288
def standard_port?
port == standard_port
end
Defined in actionpack/lib/action_dispatch/http/url.rb line 288
· View on GitHub
· Improve this page
· Find usages on GitHub
Defined in ActionDispatch::Http::URL