Adding getQueryParams method to Request class