Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

What do you use for HTTP message handling?


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....


By 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#alter...


oh I haven't noticed it had a router, thanks




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: