NSURLSession
NSURLSession is a high-level API in Apple’s Foundation framework for network data transfer. Introduced as a replacement for NSURLConnection, it provides a flexible, task-based model for HTTP and other URL requests on iOS, macOS, watchOS and tvOS.
A session is created from an NSURLSessionConfiguration (default, ephemeral, or background) and manages one or more
Key features include background transfers that continue when an app suspends (handled by system relaunch and
Common usage patterns create a shared or custom session, configure caching and timeouts, start tasks, and handle