Tells the delegate that the data task was changed to a stream task.
- iOS 9.0+
- macOS 10.11+
- Mac Catalyst 13.0+Beta
- tvOS 9.0+
- watchOS 2.0+
The session containing the task that was replaced by a stream task.
The data task that was replaced by a stream task.
The new stream task that replaced the data task.
URLSession: delegate method uses the
NSURLSession disposition to convert the request to use a stream, the session calls this delegate method to provide you with the new stream task. After this call, the session delegate receives no further delegate method calls related to the original data task.
For requests that were pipelined, the stream task allows only reading, and the object immediately sends the delegate message
URLSession:. You can disable pipelining for all requests in a session by setting the
HTTPShould property on its
NSURLSession object, or for individual requests by setting the
HTTPShould property on an