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

Add support for Server-Sent Events #2088

Merged
merged 18 commits into from
Jul 31, 2024

Conversation

MohamedSabthar
Copy link
Member

Purpose

Fixes: ballerina-platform/ballerina-library#6687

Examples

Checklist

  • Linked to an issue
  • Updated the changelog
  • Added tests
  • Updated the spec
  • Checked native-image compatibility
  • Checked the impact on OpenAPI generation

}

private ByteBuf getBuffer() {
if (pooledByteBufAllocator == null) {
Copy link
Member

Choose a reason for hiding this comment

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

Suggested change
if (pooledByteBufAllocator == null) {
if (Objects.isNull(pooledByteBufAllocator)) {

Copy link
Member Author

Choose a reason for hiding this comment

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

Since this is imperative code, we can keep the original, right? Are there any additional advantages to using this?

Co-authored-by: DimuthuMadushan <[email protected]>
Co-authored-by: Ayesh Almeida <[email protected]>
Copy link

sonarcloud bot commented Jul 30, 2024

@MohamedSabthar MohamedSabthar merged commit 6527d9d into ballerina-platform:master Jul 31, 2024
6 checks passed
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.

Proposal: HTTP Server Sent Events Support
4 participants