Default ResponseHandler for Server Sent Event (SSE) #120
-
If I want to use This functionality (SSE parser) may be outside of the scope of |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 4 replies
-
That's an interesting idea. I'm not sure how good of a fit requests would be since the idea in requests is that the requests is that each request is handled in a single function call. For SSE, I imagine you would want to open a loop of some sort. What kind of API were you imagining? |
Beta Was this translation helpful? Give feedback.
The go-sse client already does a lot of the validation and backoff stuff you might want to use requests for. I think the solution might be to just use it with requests as a simple request builder. From their example: