For small interactions with remote servers, you can use the URLSessionDataTask class to receive response data into memory
(as opposed to using the URLSessionDownloadTask class, which stores the data directly to the file system
). A data task is ideal for uses like calling a web service endpoint.
网友评论