global

def params_match?(env)

Parameters:
  • env (Faraday::Env) --
def params_match?(env)
  request_params = env[:params]
  params = env.params_encoder.decode(query) || {}
  if strict_mode
    return Set.new(params) == Set.new(request_params)
  end
  params.keys.all? do |key|
    request_params[key] == params[key]
  end
end