Skip to navigation
How to get the post parameter with aiohttp
03.04.18
async def kill_spid(self,request): data = await request.post() if 'spid' in data: spid = data['spid'] async def previous(request): if request.method == 'POST': request.app['value'] = (await request.post())['value'] return web.Response(body=b'thanks for the data') return web.Response( body='value: {}'.format(request.app['value']).encode('utf-8'))
https://docs.aiohttp.org/en/stable/testing.html
Reply
Anonymous
Information Epoch 1732674868
Effectiveness beats efficiency.
Home
Notebook
Contact us