method
GET
v7.1.3.4 -
Show latest stable
- Class:
ActionDispatch::Request
GET()public
# File actionpack/lib/action_dispatch/http/request.rb, line 388
def GET
fetch_header("action_dispatch.request.query_parameters") do |k|
rack_query_params = super || {}
controller = path_parameters[:controller]
action = path_parameters[:action]
rack_query_params = Request::Utils.set_binary_encoding(self, rack_query_params, controller, action)
# Check for non UTF-8 parameter values, which would cause errors later
Request::Utils.check_param_encoding(rack_query_params)
set_header k, Request::Utils.normalize_encode_params(rack_query_params)
end
rescue Rack::Utils::ParameterTypeError, Rack::Utils::InvalidParameterError, Rack::QueryParser::ParamsTooDeepError => e
raise ActionController::BadRequest.new("Invalid query parameters: #{e.message}")
end Related methods
- Instance methods
- GET
- POST
- authorization
- body
- body_stream
- commit_cookie_jar!
- commit_csrf_token
- commit_flash
- content_length
- controller_class
- controller_class_for
- controller_instance
- controller_instance=
- 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_csrf_token
- reset_session
- route_uri_pattern
- route_uri_pattern=
- routes
- routes=
- send_early_hints
- server_software
- session=
- session_options=
- uuid
- xhr?
- xml_http_request?
- Class methods
- empty
- new
- Private methods
-
check_method -
default_session -
read_body_stream