ios - When to use NSURLSessionDownloadTask and NSURLSessionDataTask? -
what difference between these 2. able data server using both.
there 3 types of concrete session tasks in context:
nsurlsessiondatatask: use task http requests retrieve data servers memory.
nsurlsessionuploadtask: use task upload file disk web service, typically via http post or put method.
nsurlsessiondownloadtask: use task download file remote service temporary file location.
you can suspend, resume , cancel tasks. nsurlsessiondownloadtask has additional ability pause future resumption.
Comments
Post a Comment