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
New style streaming route handler improvements #2067
Comments
this should work in
|
Yup. Eventually, we probably can merge |
@ajay1mg Are you working on a PR for this? If yes, then add a check for |
I am working on the PR for this but I am confused with your second comment. |
Sorry for not being clear. This is what I meant: class StreamingHTTPResponse(BaseHTTPResponse):
def eof(...):
raise NotImplementedError This class should not have it. |
I have added the PR for this from my personal account. didn't realize I was using my org account Please let me know if there is anything that need to be added. |
Did you see my message about trying to add some tests? |
Is your feature request related to a problem? Please describe.
The new streaming API allows streaming responses in the route handler without having to use a callback:
Describe the solution you'd like
A simpler method to closing the stream before returning in place of
await response.send("", True)
Under the hood,
eof
should simply just be a convenience call tosend("", True)
.The text was updated successfully, but these errors were encountered: