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

# URLSession.ResponseDisposition.becomeStream

Convert the response for this request to use a URLSessionStreamTask.

## Declaration

```swift
case becomeStream
```

## Discussion

Discussion When used with the completion handler from urlSession(_:dataTask:didReceive:completionHandler:), this disposition converts the task to a stream task. This will result in your delegate’s urlSession(_:dataTask:didBecome:) being called to provide you with the new stream 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.becomeDownload](foundation/urlsession/responsedisposition/becomedownload.md)
