-
Notifications
You must be signed in to change notification settings - Fork 592
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add Download Progress Monitor #336
Comments
When you download them what "asResult" method are you using? |
I using |
I've got a version of this working locally. It needs a little cleanup. I'll probably release something this weekend. However, just a warning. The length of the body is not entirely determinable. We will use the following in order:
Both of these are impacted by streaming connections. If the server just keeps feeding bytes without telling me the length then Unirest is just going to keep reading until it's gone. We will hit up the monitor on the buffer but there is a chance the total size will be zero. This might be ok for a spinner, but not great for a bar or estimated time of completion. |
(if you or anyone else has some magical way of knowing the length of an input stream without reading it I'm more than open to suggestions) |
complete in 3.6.00 |
Is your feature request related to a problem? Please describe.
I need download large files and provide some time of progress bar to a user
Describe the solution you'd like
Add Download Progress Monitor like uploadMonitor :)
The text was updated successfully, but these errors were encountered: