code: def http_resource(self, method, url, params=None, data=None):
          
  
          url = urllib_parse.urljoin(self.url, url)
          url = url if url.endswith("/") else url + "/"
  
          headers = None
  
          if method.lower() in self.unsupported_methods:
              headers = {"X-HTTP-Method-Override": method.upper()}
              method = "POST"
  
          r = self.session.request(method, url, params=params, data=data, headers=headers)
  
          r.raise_for_status()
  
          return r
docs: Makes an HTTP request.