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

Added Download / Upload Support #2

Open
biocross opened this issue Oct 2, 2017 · 2 comments
Open

Added Download / Upload Support #2

biocross opened this issue Oct 2, 2017 · 2 comments

Comments

@biocross
Copy link
Contributor

biocross commented Oct 2, 2017

Currently, Swifty only supports URLSessionDataTask, using the .load() methods on NetworkResource. Added support for downloading files using URLSessionDownloadTask, or uploading files, using URLSessionUploadTask would be great!

A simple way to get started on this issue is to add a new property to NetworkResource, which tell it what kind of task it is (Upload/Download/Data), and then add support in SwifyNetworkTask to create the appropriate task. Then a new .download() / .upload() method can be added to the NetworkResource Loader Extensions.

@biocross biocross changed the title Added Download / Upload Support. Added Download / Upload Support Oct 2, 2017
@FlippinBerger
Copy link

@biocross mind if I give this a shot?

@biocross
Copy link
Contributor Author

biocross commented Oct 4, 2017

Sure thing! Go ahead :)

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

No branches or pull requests

2 participants