port()
Returns the port number of this request as an integer.
# File actionpack/lib/action_controller/request.rb, line 296 def port if raw_host_with_port =~ /:(\d+)$/ $1.to_i else standard_port end end