def request(self, method, url, query_params=None, headers=None,<EOL>post_params=None, body=None, _preload_content=True, _request_timeout=None):
if method == "<STR_LIT:GET>":<EOL><INDENT>return self.rest_client.GET(url,<EOL>query_params=query_params,<EOL>_preload_content=_preload_content,<EOL>_request_timeout=_request_timeout,<EOL>headers=headers)<EOL><DEDENT>elif method == "<STR_LIT>":<EOL><INDENT>return self.rest_client.HEAD(url,<EOL>query_params=query_params,<EOL>_preload_content=_preload_content,<EOL>_request_timeout=_request_timeout,<EOL>headers=headers)<EOL><DEDENT>elif method == "<STR_LIT>":<EOL><INDENT>return self.rest_client.OPTIONS(url,<EOL>query_params=query_params,<EOL>headers=headers,<EOL>post_params=post_params,<EOL>_preload_content=_preload_content,<EOL>_request_timeout=_request_timeout,<EOL>body=body)<EOL><DEDENT>elif method == "<STR_LIT:POST>":<EOL><INDENT>return self.rest_client.POST(url,<EOL>query_params=query_params,<EOL>headers=headers,<EOL>post_params=post_params,<EOL>_preload_content=_preload_content,<EOL>_request_timeout=_request_timeout,<EOL>body=body)<EOL><DEDENT>elif method == "<STR_LIT>":<EOL><INDENT>return self.rest_client.PUT(url,<EOL>query_params=query_params,<EOL>headers=headers,<EOL>post_params=post_params,<EOL>_preload_content=_preload_content,<EOL>_request_timeout=_request_timeout,<EOL>body=body)<EOL><DEDENT>elif method == "<STR_LIT>":<EOL><INDENT>return self.rest_client.PATCH(url,<EOL>query_params=query_params,<EOL>headers=headers,<EOL>post_params=post_params,<EOL>_preload_content=_preload_content,<EOL>_request_timeout=_request_timeout,<EOL>body=body)<EOL><DEDENT>elif method == "<STR_LIT>":<EOL><INDENT>return self.rest_client.DELETE(url,<EOL>query_params=query_params,<EOL>headers=headers,<EOL>_preload_content=_preload_content,<EOL>_request_timeout=_request_timeout,<EOL>body=body)<EOL><DEDENT>else:<EOL><INDENT>raise ValueError(<EOL>"<STR_LIT>"<EOL>"<STR_LIT>"<EOL>)<EOL><DEDENT>
Makes the HTTP request using RESTClient.