public Method

AbstractRequest.standard_port

Returns the standard port number for this request’s protocol

Source Code

# File action_controller/request.rb, line 189
def standard_port
  case protocol
    when 'https://' then 443
    else 80
  end
end
Comments

Have your say
Please use Textile formatting (click here for a cheat sheet). Use <code/> and <pre/> for code samples.
Click here to login with OpenID to to post comments.