Returns the port number of this request as an integer.
# File action_controller/request.rb, line 184 def port @port_as_int ||= @env['SERVER_PORT'].to_i end
<code/>
<pre/>
<code/>and<pre/>for code samples.