You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Expected behavior
Response middleware does not execute twice per streaming request.
There probably is still a use case for wanting some middleware type event at the conclusion of the handler, but this is can be covered by #1630 when #2160 is finally implemented.
Environment (please complete the following information):
Version main
The text was updated successfully, but these errors were encountered:
Yes this is resolved with the new change. I will update the documentation about streaming to also let users know that they should NOT be returning an object from the handler when streaming.
Describe the bug
When responding with the response object from a streaming handler, the response middleware is executed twice.
Code snippet
Compare:
With:
Expected behavior
Response middleware does not execute twice per streaming request.
There probably is still a use case for wanting some middleware type event at the conclusion of the handler, but this is can be covered by #1630 when #2160 is finally implemented.
Environment (please complete the following information):
main
The text was updated successfully, but these errors were encountered: