responding to request, keeping the connection alive and reading the stream #7670
-
i need to respond to a request first and then read the client stream help |
Beta Was this translation helpful? Give feedback.
Replies: 3 comments 9 replies
-
That's a bit vague, but depending on what you need, you might be able to use a 100-continue handler, or do something else with a StreamResponse, or use a websocket.. |
Beta Was this translation helpful? Give feedback.
-
i tried returning streamresponse but its sending a 0 for some reason |
Beta Was this translation helpful? Give feedback.
-
no i need to respond with 200 |
Beta Was this translation helpful? Give feedback.
Maybe, I'm not sure. But, it's getting complicated and hacky, so you'd be better off just using low-level asyncio objects, like the previous user did, rather than trying to contort aiohttp to do something it's not designed for.