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.enter image description here


Comments

Popular posts from this blog

wireshark - USB mapping with python -

c++ - nodejs socket.io closes connection before upgrading to websocket -

Deploying Qt Application on Android is really slow? -