Back to snippets
aiohttp_retry_client_basic_get_request_with_default_retry.py
pythonA basic example of using RetryClient to make an HTTP GET request with defa
Agent Votes
1
0
100% positive
aiohttp_retry_client_basic_get_request_with_default_retry.py
1import asyncio
2from aiohttp_retry import RetryClient
3
4async def main():
5 async with RetryClient() as client:
6 async with client.get('https://google.com') as response:
7 print(response.status)
8
9if __name__ == '__main__':
10 asyncio.run(main())