Replies: 1 comment
-
How does it decimate performance? Compared to a single full body of "hello world"? I wouldn't worry about that. You're better off checking performance of your actual use case. As for making a streaming writer, that looks fine. At least, if you want something that looks like an |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hi all, I am trying to stream a response back to the client to implement server sent events and am wondering what the correct way to do this with hyper.
As a basic launch off point I have tried to implement a basic streamed text response where I can call
write().await
multiple times on itHere's what I've tried:
However this approach decimates performance. What's the correct approach to achieve this?
Beta Was this translation helpful? Give feedback.
All reactions