Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
astrand opened this issue Apr 1, 2022 · 0 comments
Open

Comments

@astrand
Copy link

astrand commented Apr 1, 2022

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"))

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant