code: def _http_response(self, url, method, data=None, **kwargs):
          
          header = {'content-type': 'application/json'}
  
          if data:
              data = json.dumps(data)
          path = url.format(**kwargs)
          logger.debug("%s %s", method.__name__.upper(), path)
          response = method(self.host + path,
                            data=data, headers=header, **self.method_kwargs)
          logger.debug("%s %s", response.status_code, response.reason)
          response.raise_for_status()
  
          return response
docs: url -> full target url
             method -> method from requests
             data -> request body
             kwargs -> url formatting args