Skip to content
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

Support download tasks #8

Open
lilyball opened this issue Jul 25, 2016 · 1 comment
Open

Support download tasks #8

lilyball opened this issue Jul 25, 2016 · 1 comment

Comments

@lilyball
Copy link
Collaborator

lilyball commented Jul 25, 2016

We should support creation of download tasks. This would probably be another request type that's a sibling of HTTPManagerParseRequest<T>, implemented similarly to HTTPManagerParseRequest except it has a download callback that's invoked when the download is done, instead of a parse callback invoked when the task is complete.

If possible, we should also support canceling with resume state, and re-downloading with that resume state. This probably requires having a subclass of HTTPManagerTask for downloads.

@lilyball lilyball added the TODO label Jul 25, 2016
@lilyball
Copy link
Collaborator Author

lilyball commented Aug 5, 2016

For anyone looking to do downloads today, you can use the .preparedURLRequest property of HTTPManagerRequest to get an NSURLRequest that you can use with NSURLSession.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant