Repository navigation
Default ResponseHandler for Server Sent Event (SSE) #120
Answered
by
earthboundkid
galileilei
asked this question in
Ideas
|
If I want to use This functionality (SSE parser) may be outside of the scope of |
Answered by
earthboundkid
Nov 3, 2024
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? |
4 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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: