'Running aiohttp application as a coroutine
I have an asyncio app and I want to add a simple REST API to it using aiohttp. As far as I can see, I can either create an aiohttp app and run it with aiohttp.web.run_app on another thread, or I'd have to forget about the app and use the lower level aiohttp.web.Server API. Is there a way I can use aiohttp.web.Application and then run the web application as a coroutine instead of using run_app?
Sources
This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.
Source: Stack Overflow
| Solution | Source |
|---|
