NSURLSession protocol defines delegate methods that you should implement when using
URLSession stream tasks. In addition to these methods, be sure to implement the methods in the
URLSession protocols to handle events common to all task types and session-level events, respectively.
- iOS 9.0+
- macOS 10.11+
- tvOS 9.0+
- watchOS 2.0+