Skip to content

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

Description

@astrand

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

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions