#941 Added SseDelegatingHandler#2300
#941 Added SseDelegatingHandler#2300vijay-karavadra wants to merge 2 commits intoThreeMammals:developfrom
Conversation
|
@raman-m Please review. |
raman-m
left a comment
There was a problem hiding this comment.
To be fair, this is a draft version of the feature. This handler has not yet been integrated into Ocelot's pipeline. We need to ensure the feature is functional by writing acceptance tests that make real HTTP requests to an Ocelot instance.
Could you continue working on this pull request?
Rest assured, we will guide and support you throughout the development process.
|
|
||
| namespace Ocelot.Requester | ||
| { | ||
| public class SseDelegatingHandler : DelegatingHandler |
There was a problem hiding this comment.
This handler has been designed, but it hasn't been integrated into Ocelot's pipeline yet.
| public class SseDelegatingHandlerTests | ||
| { | ||
| [Fact] | ||
| public async Task SendAsync_ForNonSseRequest_CallsBaseHandler() |
There was a problem hiding this comment.
Having a single unit test is just the first step in comprehensive testing.
|
@vijay-karavadra commented on July 14, 2025
No problem! The code review has been completed! |
Sure @raman-m . |
|
@vijay-karavadra commented on July 14, 2025
Dear Vijay,
We need to prioritize discussing this with the team and community before developing any delegating handlers.
|
Ok @raman-m . FYI I tested in the below manner and it worked for me. It works for the https/http. We just need to persist the connection during the communication, so I didn't need to introduce a new DownstreamScheme/protocol. |
|
Sorry, I will return back to this PR after releasing version 24.1 in late August or at begging of September. The current release has many risks of delivery. |
@raman-m OK, let me add acceptance tests. |
Alright, make sure to write additional unit tests to cover the new lines since the latest Coverall build failed. It seems the reported
|
@raman-m Currently I don't have the bandwidth TBH. I'm ok if anyone wants to take it from here. |
|
What was your intention when opening this pull request? |
I just had some code I used to enable SSE in my local so I wanted the repository to benefit. Let me know if I did miss anything there?? |
|
You missed the Development Process |

Closes #941
Proposed Changes
SseDelegatingHandlerto handle SSE event stream requestsDiscussions