You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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.
The text was updated successfully, but these errors were encountered:
biocross
changed the title
Added Download / Upload Support.
Added Download / Upload Support
Oct 2, 2017
Currently, Swifty only supports
URLSessionDataTask
, using the.load()
methods onNetworkResource
. Added support for downloading files usingURLSessionDownloadTask
, or uploading files, usingURLSessionUploadTask
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 inSwifyNetworkTask
to create the appropriate task. Then a new.download() / .upload()
method can be added to theNetworkResource
Loader Extensions.The text was updated successfully, but these errors were encountered: