added query_parameters method to request.rb