Swifty icon indicating copy to clipboard operation
Swifty copied to clipboard

Added Download / Upload Support

Open biocross opened this issue 8 years ago • 2 comments

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 avatar Oct 02 '17 09:10 biocross

@biocross mind if I give this a shot?

FlippinBerger avatar Oct 03 '17 20:10 FlippinBerger

Sure thing! Go ahead :)

biocross avatar Oct 04 '17 07:10 biocross