-
Notifications
You must be signed in to change notification settings - Fork 85
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
Add support for Server-Sent Events #2088
Conversation
} | ||
|
||
private ByteBuf getBuffer() { | ||
if (pooledByteBufAllocator == null) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
if (pooledByteBufAllocator == null) { | |
if (Objects.isNull(pooledByteBufAllocator)) { |
There was a problem hiding this comment.
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?
native/src/main/java/io/ballerina/stdlib/http/transport/message/HttpMessageDataStreamer.java
Show resolved
Hide resolved
Co-authored-by: DimuthuMadushan <[email protected]> Co-authored-by: Ayesh Almeida <[email protected]>
native/src/main/java/io/ballerina/stdlib/http/transport/contractimpl/common/Util.java
Show resolved
Hide resolved
ballerina-tests/http-advanced-tests/tests/server_sent_event_tests.bal
Outdated
Show resolved
Hide resolved
ballerina-tests/http-advanced-tests/tests/server_sent_event_tests.bal
Outdated
Show resolved
Hide resolved
ballerina-tests/http-advanced-tests/tests/server_sent_event_tests.bal
Outdated
Show resolved
Hide resolved
ballerina-tests/http-advanced-tests/tests/server_sent_event_tests.bal
Outdated
Show resolved
Hide resolved
ballerina-tests/http-advanced-tests/tests/server_sent_event_tests.bal
Outdated
Show resolved
Hide resolved
native/src/main/java/io/ballerina/stdlib/http/transport/contractimpl/common/Util.java
Show resolved
Hide resolved
Quality Gate passedIssues Measures |
Purpose
Fixes: ballerina-platform/ballerina-library#6687
Examples
Checklist