Skip to content

SSE Support#3697

Merged
raphael merged 5 commits into
v3from
feat/sse
May 3, 2025
Merged

SSE Support#3697
raphael merged 5 commits into
v3from
feat/sse

Conversation

@raphael
Copy link
Copy Markdown
Member

@raphael raphael commented Apr 12, 2025

This PR implements the proposal described in #3696

Done:

  • DSL and expressions
  • Response rendering
  • Handling of Last-Request-Id server side
  • Client side

raphael added 3 commits April 11, 2025 11:57
Added DSL and expressions.
This commit adds server side rendering of SSE responses.

TBD:
* Handling the incoming Last-Request-Id
* Client side handling
Comment thread http/codegen/server.go
return "/" + s
}
return "/" + s
return s
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Is this better?

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

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

Probably doesn't change much but slightly more efficient (we don't need to check for an entire string prefix, we can just test the first character).

Comment thread dsl/sse.go Outdated
eval.InvalidArgError("function", args[1])
return
}
}
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Is this if block a duplicate with L104?

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

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

Yes, good catch!

@raphael raphael enabled auto-merge (squash) May 3, 2025 22:43
@raphael raphael merged commit 0e61eba into v3 May 3, 2025
12 of 13 checks passed
@raphael raphael deleted the feat/sse branch May 3, 2025 22:50
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