Add support for Server Sent Events (SSE)#1274
Merged
Merged
Conversation
This extension allows to handle SSE events by invoking a callback whenever an event is received.
COM8
requested changes
Nov 22, 2025
COM8
left a comment
Member
There was a problem hiding this comment.
@bachp Thank you very much for contributing this!
I only have a minor comment and clang-tidy is not yet completely happy. The abseil-string-find-str-contains clang-tidy error can be added to the ignore list inside .clang-tidy.
The other CI runs are currently expected to fail.
bd73396 to
32f8795
Compare
Contributor
Author
|
I fixed all the linter errors. |
COM8
approved these changes
Nov 29, 2025
Member
|
@bachp Please rabase and then we are ready to go. |
Member
|
@bachp I rebased and then created a new release: https://github.com/libcpr/cpr/releases/tag/1.14.0 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
This extension allows to handle SSE events
by invoking a callback whenever an event is received.
Related documentation: libcpr/docs#59
Closes #1014
I tested this against an axum server with the following example: