Advertisement
cooperlees

Untitled

Apr 3rd, 2020
427
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 0.56 KB | None | 0 0
  1. #!/usr/bin/env python3
  2.  
  3. from asyncio import run
  4. import aiohttp
  5.  
  6.  
  7. async def purgey() -> None:
  8.     async with aiohttp.ClientSession() as session:
  9.         async with session.request(
  10.             "PURGE",
  11.             "https://us.cooperlees.com/pure_test"
  12.         ) as purge_response:
  13.             pass
  14.             # content = await purge_response.text()
  15.             # print(content)
  16.             # print(purge_response.status)
  17.             # print(dir(purge_response))
  18.             # print(vars(purge_response))
  19.  
  20.  
  21. if __name__ == "__main__":
  22.     run(purgey())
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement