<!--
{
  "availability" : [
    "iOS: 9.0.0 -",
    "iPadOS: 9.0.0 -",
    "macCatalyst: 13.1.0 -",
    "macOS: 10.11.0 -",
    "tvOS: 9.0.0 -",
    "visionOS: 1.0.0 -",
    "watchOS: 2.0.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "Foundation",
  "identifier" : "/documentation/Foundation/URLSession/ResponseDisposition/becomeStream",
  "metadataVersion" : "0.1.0",
  "role" : "Case",
  "symbol" : {
    "kind" : "Case",
    "modules" : [
      "Foundation"
    ],
    "preciseIdentifier" : "c:@E@NSURLSessionResponseDisposition@NSURLSessionResponseBecomeStream"
  },
  "title" : "URLSession.ResponseDisposition.becomeStream"
}
-->

# URLSession.ResponseDisposition.becomeStream

Convert the response for this request to use a [`URLSessionStreamTask`](/documentation/Foundation/URLSessionStreamTask).

```
case becomeStream
```

## Discussion

When used with the completion handler from [`urlSession(_:dataTask:didReceive:completionHandler:)`](/documentation/Foundation/URLSessionDataDelegate/urlSession(_:dataTask:didReceive:completionHandler:)), this disposition converts the task to a stream task. This will result in your delegate’s [`urlSession(_:dataTask:didBecome:)`](/documentation/Foundation/URLSessionDataDelegate/urlSession(_:dataTask:didBecome:)-7nqzu) being called to provide you with the new stream task that supersedes the current task.

---

Copyright &copy; 2026 Apple Inc. All rights reserved. | [Terms of Use](https://www.apple.com/legal/internet-services/terms/site.html) | [Privacy Policy](https://www.apple.com/privacy/privacy-policy)