async def request(self, method, uri, body="", **kwargs): headers = HEADERS r = HttpRequest(method, uri=self.Endpoint + uri, headers=headers, body=body) self.sig.Sign(r) return await _request(r, **kwargs)
async def delete(self, uri, body="", **kwargs): headers = HEADERS kwargs.setdefault('allow_redirects', True) r = HttpRequest("DELETE", uri=self.Endpoint + uri, headers=headers, body=body) self.sig.Sign(r) return await _request(r, **kwargs)
def patch(self, uri, body="", **kwargs): headers = HEADERS kwargs.setdefault('allow_redirects', True) r = HttpRequest("PATCH", uri=self.Endpoint + uri, headers=headers, body=body) self.sig.Sign(r) return _request(r, **kwargs)