Here are the examples of the python api aiohttp.client._RequestContextManager taken from open source projects. By voting up you can indicate which examples are most useful and appropriate.
7 Examples
0
Example 1
def get(self, path, *args, **kwargs):
"""Perform an HTTP GET request."""
return _RequestContextManager(
self.request(hdrs.METH_GET, path, *args, **kwargs)
)
0
Example 2
def post(self, path, *args, **kwargs):
"""Perform an HTTP POST request."""
return _RequestContextManager(
self.request(hdrs.METH_POST, path, *args, **kwargs)
)
0
Example 3
def options(self, path, *args, **kwargs):
"""Perform an HTTP OPTIONS request."""
return _RequestContextManager(
self.request(hdrs.METH_OPTIONS, path, *args, **kwargs)
)
0
Example 4
def head(self, path, *args, **kwargs):
"""Perform an HTTP HEAD request."""
return _RequestContextManager(
self.request(hdrs.METH_HEAD, path, *args, **kwargs)
)
0
Example 5
def put(self, path, *args, **kwargs):
"""Perform an HTTP PUT request."""
return _RequestContextManager(
self.request(hdrs.METH_PUT, path, *args, **kwargs)
)
0
Example 6
def patch(self, path, *args, **kwargs):
"""Perform an HTTP PATCH request."""
return _RequestContextManager(
self.request(hdrs.METH_PATCH, path, *args, **kwargs)
)
0
Example 7
def delete(self, path, *args, **kwargs):
"""Perform an HTTP PATCH request."""
return _RequestContextManager(
self.request(hdrs.METH_DELETE, path, *args, **kwargs)
)