---
title: URLSession.ResponseDisposition.becomeDownload
framework: foundation
role: symbol
role_heading: Case
path: foundation/urlsession/responsedisposition/becomedownload
---

# URLSession.ResponseDisposition.becomeDownload

Convert the response for this request to use a URLSessionDownloadTask.

## Declaration

```swift
case becomeDownload
```

## Discussion

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

- [URLSession.ResponseDisposition.cancel](foundation/urlsession/responsedisposition/cancel.md)
- [URLSession.ResponseDisposition.allow](foundation/urlsession/responsedisposition/allow.md)
- [URLSession.ResponseDisposition.becomeStream](foundation/urlsession/responsedisposition/becomestream.md)
