def _request(self, method, url, **kwargs):
resp = self._session.request(method,<EOL>'<STR_LIT>'.format(self._base_url, url),<EOL>headers=self._headers,<EOL>**kwargs)<EOL>try:<EOL><INDENT>resp.raise_for_status()<EOL><DEDENT>except HTTPError as e:<EOL><INDENT>logging.error(resp.content)<EOL>raise RestClientError(e)<EOL><DEDENT>return resp<EOL>
Make HTTP request and return response object

            Args:
                method (str): GET, POST, PUT, DELETE
                url (str): path appended to the base_url to create request
                **kwargs: passed directly to a requests.request object