aiohttp-swagger icon indicating copy to clipboard operation
aiohttp-swagger copied to clipboard

Support for "Try it out" feature with incremental/streaming endpoints?

Open astrand opened this issue 2 years ago • 0 comments

Is it possible to use the web interface "Try it out" feature, with a REST endpoing which sends data incrementally, and never returns a response code? The server does like this:

resp = web.StreamResponse()
await resp.prepare(request)
while True:
    message = await queue.get()
    await resp.write(message.encode("utf-8"))

astrand avatar Apr 01 '22 07:04 astrand