✅ Streaming From REST API?
I'm building an SDK to interface with a REST API, and for one of then endpoints you can supply a boolean to specify if you want streaming or not. In particular, it mentions:
I'm just wondering, do I use HTTPClient for this? Or is there another way to handle streams?
5 Replies
client.GetStreamAsync()
perhaps?Unknown User•9mo ago
Message Not Public
Sign In & Join Server To View
Say this is for a chat and I want to pass a ChatRequest object, would I open the stream first and then pass it?
If it's for a chat, you should be using a real-time protocol
Far as what to do with that request...? Well, it is a stream. So sure, you can read it to the end and forward it
Unknown User•9mo ago
Message Not Public
Sign In & Join Server To View