3 ms·
Well, there is no request router in asyncio-http, so I have to use async views in django or if I need something lightweight I go with Quart. But if I was given
by nurettin 6y ago
Well, there is no request router in asyncio-http, so I have to use async views in django or if I need something lightweight I go with Quart. But if I was given the proper time, I'd probably invent my own routing on top of asyncio-http using google's re2 to parse the REST requests like I did here some years ago. https://github.com/nurettin/pwned/blob/master/server/server.hpp#L84 https://github.com/nurettin/pwned/blob/master/server/server....
- takeda 6y agoBy asyncio http do you mean aiohttp? Besides the standard way, you can also register routes similarly to DJango and Flask: https://docs.aiohttp.org/en/stable/web_quickstart.html#alternative-ways-for-registering-routes https://docs.aiohttp.org/en/stable/web_quickstart.html#alter...
- nurettin 6y agooh I haven't noticed it had a router, thanks