code: def _request(self, path, method, body=None):
          
          url = '/'.join([_SERVER, path])
          (resp, content) = _HTTP.request(url, method,
                                          headers=self._headers, body=body)
  
          content_type = resp.get('content-type')
          if content_type and content_type.startswith('application/json'):
              content = json.loads(content.decode('UTF-8'))
  
          return (resp, content)
docs: Make a request from the API.