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
Should streaming endpoints produce text/event-stream content? #26
Comments
Interesting. |
We're also very much interested in this. The biggest benefit of using event-stream is that parsing a stream of JS events in a browser doesn't buffer up the whole content of the stream. I think implementing this could be relatively easy. Adding special case of We're actually interested in doing this ourselves. @yugui, would you accept PRs for this? |
Yes, I will. |
@mwitkow any action on this? |
@yugui for swagger-compat questions: OAI/OpenAPI-Specification#396 |
I have read the spec of the server-sent events. But it might be useful if we can support server-sent events as a part of pluggable marshaling mechanism. |
Any update on this? |
No update yet, haha. This issue is 7 years old 😓. Lets try to see what we can do in the other issue first? |
https://html.spec.whatwg.org/multipage/comms.html#server-sent-events
This would allow newer browsers to use the EventSource APIs cleanly.
The text was updated successfully, but these errors were encountered: