Esempio n. 1
0
 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)
Esempio n. 2
0
 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)
Esempio n. 3
0
 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)