Replies: 1 comment
-
That's not the case. hyper streams bodies. You await for the receipt of the response headers, and then you can await chunks of the body data as they arrive. You can see an example of that in client basic guide. |
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
-
Hello community,
I'm sorry about just starting to use this library, so I'm not familiar with its API.
My goal is to start processing the data in the body immediately when the server returns it.
This means that I need to start processing immediately while receiving is still ongoing, instead of waiting for the reception to be completed before starting.
Currently, I have found two APIs:
hyper_util::client::legacy::client
andhyper::client::conn::http2::handshake
. However, the former cannot process data immediately while receiving (request.await
needs to block until all data is received), and for the latter, I haven't found how to use it in HTTPS or if there are similar APIs available. Does anyone know how should I handle this?Beta Was this translation helpful? Give feedback.
All reactions