Contents

URLSession.ResponseDisposition.becomeDownload

Convert the response for this request to use a Urlsessiondownloadtask.

Declaration

case becomeDownload

Discussion

When used with the completion handler from urlSession(_:dataTask:didReceive:completionHandler:), this disposition converts the data task to a download task. This will result in your delegate’s urlSession(_:dataTask:didBecome:) being called to provide you with the new download task that supersedes the current task.

See Also

Task dispositions