Replies: 2 comments
-
You can stream the body of the response with several different methods. I'd suggest looking at the descriptions of each method to determine which would fit your use case. |
Beta Was this translation helpful? Give feedback.
0 replies
-
the chunk method is for async and I would need sync and something that reads into the buffer and returns only errorkind |
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, I'm thinking of creating my own downloader based on reqwest crate, but I'm solving 1 problem, if the download fails sometimes I'd like to restore it, but for example if there's a timeout, but only if I use .chunk or .read(&mut buffer); so the first gives me an option and the second an error kind, how can I reliably find out what happened and whether it is worth renewing the download?
Beta Was this translation helpful? Give feedback.
All reactions