APIdock / Ruby on Rails
/
Browse About
method

server_software

v6.1.7.7 - Show latest stable - Class: ActionDispatch::Request
server_software()
public

Returns the lowercase name of the HTTP server software.

# File actionpack/lib/action_dispatch/http/request.rb, line 320
    def server_software
      (get_header("SERVER_SOFTWARE") && /^([a-zA-Z]+)/ =~ get_header("SERVER_SOFTWARE")) ? $1.downcase : nil
    end

Related methods

  • Instance methods
  • GET
  • POST
  • authorization
  • body
  • body_stream
  • commit_cookie_jar!
  • commit_flash
  • content_length
  • controller_class
  • controller_class_for
  • controller_instance
  • controller_instance=
  • cookie_jar
  • engine_script_name
  • engine_script_name=
  • form_data?
  • fullpath
  • headers
  • http_auth_salt
  • inspect
  • ip
  • key?
  • local?
  • logger
  • media_type
  • method
  • method_symbol
  • original_fullpath
  • original_url
  • query_parameters
  • raw_post
  • raw_request_method
  • remote_ip
  • remote_ip=
  • request_id
  • request_id=
  • request_method
  • request_method=
  • request_method_symbol
  • request_parameters
  • request_parameters=
  • reset_session
  • routes
  • routes=
  • send_early_hints
  • server_software
  • session=
  • session_options=
  • show_exceptions?
  • ssl?
  • uuid
  • xhr?
  • xml_http_request?
  • Class methods
  • empty
  • new
  • Private methods
  • privatecheck_method
APIdock API Documentation Browser

© 2026 APIdock