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

feat: added event stream support #448

Closed
wants to merge 4 commits into from
Closed

feat: added event stream support #448

wants to merge 4 commits into from

Conversation

fawadasaurus
Copy link
Contributor

No description provided.

@@ -357,6 +363,22 @@ fn output_task(
) -> BoxFuture<'static, ()> {
let task = async move {
match codec {
Codec::EventStream => {
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Handling SSE responses is more of a special handling of a response type, vs a codec. The codec would describe how to handle the data in an event.

Since the content-type: text/event-stream is a standard, should this be handled automatically? The data would be processed as whatever the codec dictates before being sent to the output?

@jsoverson
Copy link
Contributor

merged via #450

@jsoverson jsoverson closed this Oct 16, 2023
@jsoverson jsoverson deleted the event-stream branch October 18, 2023 17:33
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

Successfully merging this pull request may close these issues.

2 participants