Holger, payload is a DataQueue object. you can do ‘data = yield from payload.read()’, empty data means eof.
On Jan 5, 2014, at 2:15 PM, Holger Waldmann <[email protected]> wrote: > If this is not the right place to discuss aiohttp then please say so. > > I had a look into aiohttp and after the simple hello world example > immediately hit the following problem: > I cannot find a way to read the request body from within the request handler. > The handler is an asyncio.coroutine so I expect to find a method that I can > yield from to read the data: > data = yield from X.read(n) # or recv(n) or read_bytes(n) or whatever... > Where X is either an attribute of the message object or the payload object. > > How is it supposed to be done? > > Regards > Holger >
