APIdock / Ruby on Rails
/
Browse About
method

head?

v2.3.8 - Show latest stable - Class: ActionController::Request
head?()
public

Is this a HEAD request? Since request.method sees HEAD as :get, this \method checks the actual HTTP \method directly.

# File actionpack/lib/action_controller/request.rb, line 68
    def head?
      request_method == :head
    end

Related methods

  • Instance methods
  • GET
  • POST
  • accepts
  • body
  • body_stream
  • cache_format
  • content_length
  • content_type
  • delete?
  • domain
  • etag_matches?
  • form_data?
  • format
  • format=
  • fresh?
  • get?
  • head?
  • headers
  • host
  • host_with_port
  • if_modified_since
  • if_none_match
  • key?
  • media_type
  • method
  • not_modified?
  • parameters
  • params
  • path
  • path_parameters
  • path_parameters=
  • port
  • port_string
  • post?
  • protocol
  • put?
  • query_parameters
  • query_string
  • raw_host_with_port
  • raw_post
  • remote_ip
  • request_method
  • request_parameters
  • request_uri
  • reset_session
  • server_port
  • server_software
  • session
  • session=
  • session_options
  • session_options=
  • ssl?
  • standard_port
  • subdomains
  • symbolized_path_parameters
  • template_format
  • url
  • xhr?
  • xml_http_request?
  • Private methods
  • privatenamed_host?
  • privatenormalize_parameters
APIdock API Documentation Browser

© 2026 APIdock