APIdock / Ruby on Rails
/
Browse About
method

standard_port

v2.0.3 - Show latest stable - Class: ActionController::AbstractRequest
standard_port()
public

Returns the standard port number for this request’s protocol

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

Related methods

  • Instance methods
  • accepts
  • body
  • content_length
  • content_type
  • delete?
  • domain
  • format
  • format=
  • get?
  • head?
  • headers
  • host
  • host_with_port
  • method
  • parameters
  • path
  • path_parameters
  • port
  • port_string
  • post?
  • protocol
  • put?
  • query_string
  • raw_post
  • relative_url_root
  • remote_ip
  • request_method
  • request_uri
  • server_software
  • ssl?
  • standard_port
  • subdomains
  • symbolized_path_parameters
  • url
  • xhr?
  • xml_http_request?
  • Protected methods
  • protectedcontent_type_with_parameters
  • protectedcontent_type_without_parameters
  • Private methods
  • privateclean_up_ajax_request_body!
  • privateextract_content_type_without_parameters
  • privateextract_multipart_boundary
  • privateget_typed_value
  • privateparse_multipart_form_parameters
  • privateparse_query_parameters
  • privateparse_request_parameters
  • privateread_multipart
  • privatecontent_type_from_legacy_post_data_format_header
  • privatenamed_host?
  • privateparse_formatted_request_parameters
APIdock API Documentation Browser

© 2026 APIdock