instance method
query
Ruby on Rails edge
Since edgeSignature
query(path, **args)
Performs a QUERY request with the given parameters. Params are sent as the request body, per RFC 10008, with a default Content-Type of application/x-www-form-urlencoded (RFC 10008 requires QUERY requests to declare one) — pass as: :json or an explicit CONTENT_TYPE header to override. See ActionDispatch::Integration::Session#process for more details.
Parameters
-
pathreq -
argskeyrest
Source
# File actionpack/lib/action_dispatch/testing/integration.rb, line 64
def query(path, **args)
process(:query, path, **args)
end
Defined in actionpack/lib/action_dispatch/testing/integration.rb line 64
· View on GitHub
· Improve this page
· Find usages on GitHub
Defined in ActionDispatch::Integration::RequestHelpers